Function at 0x4e5e70
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x565e58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x158]
xor edi, edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x30], eax
cmp eax, edi
je 0x4e6ae8
call fcn.004e4b20
mov eax, dword [str.msw.remap]
cmp eax, edi
jne 0x4e5ee6
mov eax, 0x5bb970
mov ecx, dword [0x576324]
push ecx
push edi
push eax
lea ecx, [esp + 0x40]
call fcn.0045fb60
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x1e4], edi
call fcn.00543080
add esp, 4
test al, al
je 0x4e5f54
mov eax, dword [str.msw.remap]
cmp eax, edi
jne 0x4e5f1e
mov eax, 0x5bb970
mov ecx, dword [0x576324]
push ecx
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.0045fb60
lea edx, [esp + 0x18]
mov ebx, 1
push edx
mov byte [esp + 0x1e4], 1
mov dword [esp + 0x20], ebx
call fcn.00543040
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x4e5f69
call fcn.004b4e50
xor ecx, ecx
cmp eax, 8
setle cl
lea ecx, [ecx + ecx - 1]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1e0], edi
test bl, 1
je 0x4e5f90
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
je 0x4e5f90
dec eax
mov dword [ecx], eax
cmp eax, edi
jne 0x4e5f90
call fcn.0045ea90
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x1e0], 0xffffffff
cmp eax, 0xffffffff
je 0x4e5fb6
dec eax
mov dword [ecx], eax
cmp eax, edi
jne 0x4e5fb6
call fcn.0045ea90
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
cmp dword [esi + 0x194], edi
jbe 0x4e5fe1
mov eax, dword [esi + 0x114]
push 0
push 0
push 0x416
push eax
call ebx
inc edi
cmp edi, dword [esi + 0x194]
jb 0x4e5fc6
mov eax, dword [esi + 0xcc]
xor edx, edx
shr eax, 7
mov dword [esp + 0x50], edx
test al, 1
je 0x4e5ffb
xor ecx, ecx
jmp 0x4e65f9
mov edi, dword [esi + 0x184]
mov ecx, dword [esi + 0x18c]
mov ebx, dword [esi + 0x188]
mov dword [esp + 0x7c], edi
imul edi, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], edi
call fcn.0040c8de
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x1ec], 2
call fcn.004a6820
mov eax, dword [esp + 0x40]
mov byte [esp + 0x1e0], 3
test eax, eax
je 0x4e6068
cmp dword [eax + 0x14], 0
je 0x4e6068
lea ecx, [esp + 0x3c]
call fcn.00461790
mov eax, dword [esp + 0x1b4]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [eax + 8]
lea ecx, [esp + 0x1b8]
call edx
cmp dword [esp + 0x20], 2
je 0x4e60f0
lea eax, [esp + 0x1bc]
push eax
mov ecx, esi
call fcn.004aa330
push 0x64
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x1e8], 4
call fcn.004b3d70
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1e4], 5
call fcn.004b05b0
lea ecx, [esp + 0x48]
mov byte [esp + 0x1e0], 4
call fcn.00493df0
lea ecx, [esp + 0x1bc]
mov byte [esp + 0x1e0], 3
call fcn.00493df0
lea ecx, [esp + 0xb4]
call fcn.004af550
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4e60fb
mov eax, dword [eax + 0x14]
cmp dword [esp + 0x20], 0
mov ebx, eax
mov dword [esi + 0x18c], eax
mov dword [esp + 0x1c], ebx
jne 0x4e6186
mov eax, dword [0x5ebc50]
test eax, eax
je 0x4e6127
cmp dword [eax + 0x14], 0
je 0x4e6127
mov ecx, 0x5ebc4c
call fcn.00461790
mov edx, dword [esp + 0x1b4]
mov eax, dword [edx + 8]
push 0x5ebc4c
lea ecx, [esp + 0x1b8]
call eax
mov ecx, dword [esp + 0x80]
push ecx
push edi
push ebx
call fcn.004e5280
mov ebx, eax
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x4e616e
cmp dword [eax + 0x14], 0
je 0x4e616e
lea ecx, [esp + 0x3c]
call fcn.00461790
mov eax, dword [esp + 0x1b4]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [eax + 8]
lea ecx, [esp + 0x1b8]
call edx
xor eax, eax
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], eax
call fcn.004e5560
mov eax, dword [esi + 0x160]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4e6485
lea esp, [esp]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xc], 1
mov dword [esp + 0x34], ecx
jne 0x4e6476
mov eax, dword [ecx + 0x24]
lea edi, [ecx + 0x20]
test eax, eax
jne 0x4e61d1
mov dword [esp + 0x24], eax
jmp 0x4e61d8
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x4e61e0
xor ebx, ebx
jmp 0x4e61e3
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x28], ebx
test eax, eax
je 0x4e6244
cmp dword [eax + 0x14], 0
je 0x4e6244
mov eax, dword [esi + 0x184]
sub eax, dword [esp + 0x24]
mov ecx, 0
cdq
sub eax, edx
sar eax, 1
sets cl
push 1
dec ecx
and ecx, eax
mov eax, dword [esi + 0x188]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
mov edx, 0
sets dl
dec edx
and eax, edx
mov edx, dword [esp + 0xb8]
push eax
mov eax, dword [esp + 0x20]
add ecx, eax
mov eax, dword [edx + 0x104]
push ecx
push edi
lea ecx, [esp + 0xc4]
call eax
cmp dword [esi + 0x190], 0
je 0x4e645c
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x58], vtable.wxObject.0
mov dword [esp + 0x5c], eax
test eax, eax
je 0x4e626f
inc dword [eax + 4]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], vtable.wxBitmap.0
mov byte [esp + 0x1e0], 6
test eax, eax
je 0x4e628d
cmp dword [eax + 0x14], 0
jne 0x4e6419
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], vtable.wxImage.0
lea edx, [esp + 0x48]
push edx
mov ecx, edi
mov byte [esp + 0x1e4], 7
call fcn.004a5ab0
lea ecx, [esp + 0x64]
push ecx
push eax
mov byte [esp + 0x1e8], 8
call fcn.004e3fa0
add esp, 8
lea ecx, [esp + 0x48]
mov byte [esp + 0x1e0], 7
mov dword [esp + 0x48], vtable.wxObject.0
call fcn.00461690
cmp dword [esp + 0x20], 1
jne 0x4e63a9
xor ebx, ebx
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
jle 0x4e63a9
jmp 0x4e6300
xor edi, edi
cmp dword [esp + 0x24], edi
mov dword [esp + 0x60], edi
jle 0x4e639a
push 0x80
push ebx
push edi
lea ecx, [esp + 0x70]
call fcn.0048b8b0
test al, al
je 0x4e638b
push 0xe
call fcn.0049a5b0
push 0xe
mov esi, eax
call fcn.0049a5b0
push 0xe
mov edi, eax
call fcn.0049a5b0
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx + 0x30]
add esp, 0xc
mov ecx, esi
call eax
mov edx, dword [edi]
movzx ecx, al
mov eax, dword [edx + 0x2c]
push ecx
mov ecx, edi
call eax
mov edx, dword [ebx]
movzx ecx, al
mov eax, dword [edx + 0x28]
push ecx
mov ecx, ebx
call eax
mov edx, dword [esp + 0x3c]
movzx ecx, al
mov eax, dword [esp + 0x68]
push ecx
push edx
push eax
lea ecx, [esp + 0x78]
call fcn.0048b4d0
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x34]
inc edi
cmp edi, dword [esp + 0x24]
mov dword [esp + 0x60], edi
jl 0x4e6310
inc ebx
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x34], ebx
jl 0x4e6300
mov dword [esp + 0x70], 0
push 0xffffffffffffffff
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + 0x1e8], 9
mov dword [esp + 0x74], vtable.wxBitmap.0
call fcn.004a63e0
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1e4], 0xa
call fcn.00461760
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1e0], 7
call fcn.00493df0
lea ecx, [esp + 0x64]
mov byte [esp + 0x1e0], 6
mov dword [esp + 0x64], vtable.wxObject.0
call fcn.00461690
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x20], 1
jne 0x4e6436
test eax, eax
je 0x4e6427
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push eax
call fcn.004e5280
add esp, 0xc
mov ecx, dword [esi + 0x190]
push 0x5ebc4c
lea edx, [esp + 0x5c]
push edx
call fcn.004f5c60
lea ecx, [esp + 0x58]
mov byte [esp + 0x1e0], 3
call fcn.00493df0
mov eax, dword [esi + 0x184]
add dword [esp + 0x18], eax
inc dword [esp + 0x44]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4e61b0
mov eax, dword [0x5ebc50]
test eax, eax
je 0x4e649e
cmp dword [eax + 0x14], 0
je 0x4e649e
mov ecx, 0x5ebc4c
call fcn.00461790
mov edx, dword [esp + 0x1b4]
mov eax, dword [edx + 8]
push 0x5ebc4c
lea ecx, [esp + 0x1b8]
call eax
lea ecx, [esp + 0x3c]
call fcn.00461790
cmp dword [esp + 0x20], 1
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x14], 0
jne 0x4e64e5
mov edx, dword [esp + 0x80]
push edx
push edi
push ebx
call fcn.004e5280
add esp, 0xc
mov ebx, eax
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4e6552
call fcn.0048ac10
cmp eax, 0x190
jl 0x4e6548
mov eax, dword [esp + 0x44]
xor ecx, ecx
lea edx, [esp + 0x1bc]
push edx
push ecx
mov dword [esp + 0x1d4], eax
mov eax, dword [esi + 0x114]
push 0x42e
mov dword [esp + 0x1d4], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov dword [esp + 0x1cc], ecx
mov dword [esp + 0x1d4], ecx
mov dword [esp + 0x1d0], edi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4e657c
mov eax, dword [esi + 0x194]
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x44]
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x48]
push ecx
push edx
push 0x413
mov dword [esp + 0x58], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov dword [esp + 0x58], 0
call ebx
call fcn.0048ac10
cmp eax, 0x1d6
jl 0x4e65b5
mov eax, dword [esi + 0x190]
test eax, eax
je 0x4e6597
mov ecx, dword [eax + 8]
jmp 0x4e6599
xor ecx, ecx
mov eax, dword [esi + 0x114]
push ecx
push 0
push 0x436
push eax
call ebx
test eax, eax
je 0x4e65b5
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e0], 2
call fcn.00493df0
lea ecx, [esp + 0xb4]
mov dword [esp + 0x1e0], 0xffffffff
mov dword [esp + method.wxMemoryDCBase.virtual_0], vtable.wxMemoryDCBase.0
call fcn.004b0a60
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x114]
movzx edx, dx
movzx ecx, cx
shl edx, 0x10
or edx, ecx
push edx
push 0
push 0x420
push eax
call ebx
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov edx, 0x14
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00503d0c
mov edi, eax
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x38], edi
call fcn.00461400
mov eax, dword [esi + 0x160]
mov dword [esp + 0x1e0], 0xb
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4e67fc
add edi, 8
test dword [esi + 0xcc], 0x4008
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 8]
je 0x4e669a
cmp dword [ebx + 0xc], 2
jne 0x4e669a
call fcn.0048ac10
cmp eax, 0x1d8
jle 0x4e67e5
xor eax, eax
mov dword [edi - 8], eax
mov dword [edi - 4], eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
xor cl, cl
sub eax, 1
je 0x4e66d4
sub eax, 1
je 0x4e66c8
sub eax, 1
jne 0x4e67da
mov edx, dword [ebx + 0x10]
mov dword [edi - 4], edx
mov byte [edi], 4
mov byte [edi + 1], 1
jmp 0x4e67da
mov eax, dword [esi + 0xcc]
shr eax, 7
test al, 1
jne 0x4e66e8
mov edx, dword [esp + 0x50]
mov dword [edi - 8], edx
mov eax, dword [esi + 0xcc]
shr eax, 8
test al, 1
je 0x4e6701
mov eax, dword [ebx + 0x30]
cmp dword [eax - 8], 0
je 0x4e6701
mov dword [edi + 8], eax
mov edx, dword [ebx + 0x10]
mov dword [edi - 4], edx
cmp byte [ebx + 0x1d], 0
je 0x4e6710
or byte [edi], 4
cmp byte [ebx + 0x1c], 0
je 0x4e6719
or byte [edi], 1
mov eax, dword [ebx + 0x14]
sub eax, 0
je 0x4e67d2
sub eax, 1
je 0x4e67cc
sub eax, 1
jne 0x4e67d2
mov byte [edi + 1], 6
cmp byte [esp + 0x17], al
jne 0x4e6764
or byte [edi], 1
push 1
mov ecx, ebx
call fcn.004e2b50
test al, al
je 0x4e67c8
mov eax, dword [esi]
mov edx, dword [eax + 0x370]
push 1
push ebx
mov ecx, esi
call edx
mov cl, 1
jmp 0x4e67d6
cmp byte [ebx + 0x1c], 0
je 0x4e67c8
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x4e67c8
lea ecx, [edi - 0x14]
mov dword [esp + 0x1c], ecx
lea esp, [esp]
mov eax, dword [ebx + 8]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x30], eax
jne 0x4e67c8
cmp dword [eax + 0x14], 2
jne 0x4e67c8
push 0
mov ecx, eax
call fcn.004e2b50
test al, al
je 0x4e67b3
mov edx, dword [esi]
mov eax, dword [esp + 0x30]
mov edx, dword [edx + 0x370]
push 0
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
and byte [eax], 0xfe
mov ebx, dword [ebx + 0x10]
sub eax, 0x14
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x4e6780
mov cl, 1
jmp 0x4e67d6
mov byte [edi + 1], 2
jmp 0x4e67d6
mov byte [edi + 1], 0
inc dword [esp + 0x50]
inc dword [esp + 0x18]
mov byte [esp + 0x17], cl
add edi, 0x14
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4e6671
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x114]
push edi
push ecx
push 0x444
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.00504754
mov ebx, dword [esi + 0x160]
xor edi, edi
add esp, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x4e6a89
lea esp, [esp]
mov eax, dword [ebx + 8]
cmp dword [eax + 0xc], 3
mov dword [esp + 0x18], eax
sete al
mov byte [esp + 0x17], al
test al, al
jne 0x4e6866
test dword [esi + 0xcc], 0x4008
je 0x4e6a75
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x6c]
push edx
push edi
push 0x41d
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esp + 0x17], 0
jne 0x4e6896
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
add dword [esp + 0x24], eax
jmp 0x4e6a75
mov edi, dword [esp + 0x18]
mov ebx, dword [edi + 0x18]
mov edx, dword [ebx]
mov edx, dword [edx + 0x218]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call edx
mov dword [esp + 0x20], 0xffffffff
call fcn.0048ac10
cmp eax, 0x1d7
jl 0x4e690d
mov ax, word [esp + 0x30]
mov ecx, dword [esi + 0x114]
lea edx, [esp + 0x94]
push edx
mov word [esp + 0xaa], ax
mov eax, dword [edi + 0x10]
push eax
push 0x440
push ecx
mov dword [esp + 0xa4], 0x20
mov dword [esp + 0xa8], 0x40
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4e69c2
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x74]
sub edi, eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x1c0], eax
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1bc], eax
mov dword [esp + 0x1c8], eax
mov dword [esp + 0x1cc], eax
mov dword [esp + 0x1c0], eax
mov eax, dword [esp + 0x30]
cdq
idiv edi
mov byte [esp + 0x1c4], 4
mov byte [esp + 0x1c5], 1
mov dword [esp + 0x38], eax
test eax, eax
jbe 0x4e699e
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x1bc]
push ecx
push edx
push 0x443
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
add dword [esp + 0x28], eax
sub dword [esp + 0x1c], eax
jne 0x4e6970
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebx]
inc eax
imul eax, edi
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [edx + 0x228]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, ebx
call eax
mov edi, dword [esp + 0x78]
sub edi, dword [esp + 0x70]
mov eax, edi
sub eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
jns 0x4e69f6
mov edx, dword [ebx]
mov edx, dword [edx + 0x228]
push 0
lea eax, [edi - 2]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, ebx
call edx
mov dword [esp + 0x1c], 2
test dword [esi + 0xcc], 0x4008
je 0x4e6a30
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
mov edx, dword [edx + 0x334]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x48]
push eax
mov ecx, esi
mov dword [esp + 0x24], 0
call edx
mov eax, dword [esp + 0x4c]
lea ecx, [edi + eax*2]
add dword [esp + 0x24], ecx
jmp 0x4e6a47
cmp dword [esp + 0x20], 0xffffffff
jne 0x4e6a3f
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [ebx]
inc eax
cdq
push 0
sub eax, edx
mov edx, dword [edi + 0x228]
push 0xffffffffffffffff
sar eax, 1
add eax, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
push ecx
mov ecx, ebx
call edx
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ebx, dword [ebx + 0xc]
inc edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
test ebx, ebx
jne 0x4e6840
test dword [esi + 0xcc], 0x4008
mov dword [esi + 0x194], edi
jne 0x4e6aa8
cmp dword [esi + 0x174], 0
jne 0x4e6ac3
push 1
jmp 0x4e6ab7
test edi, edi
jbe 0x4e6ac3
mov dword [esi + 0x174], 1
push edi
mov eax, dword [esi]
mov edx, dword [eax + 0x340]
mov ecx, esi
call edx
mov ecx, esi
call fcn.004a7710
mov ecx, esi
call fcn.004e4ea0
lea ecx, [esp + 0x88]
mov dword [esp + 0x1e0], 0xffffffff
call fcn.00461590
mov al, 1
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.0050a9d0
mov esp, ebp
pop ebp
ret