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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x70e5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x820ac4]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x820ac4]
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
cmp eax, edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x30], eax
je 0x5d58be
call fcn.005d38f0
mov eax, dword [str.msw.remap]
cmp eax, edi
jne 0x5d4cc6
mov eax, 0x7aff50
mov ecx, dword [0x77132c]
push ecx
push edi
push eax
lea ecx, [esp + 0x40]
call fcn.005fc220
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x1e4], edi
call fcn.00617af0
add esp, 4
test al, al
je 0x5d4d34
mov eax, dword [str.msw.remap]
cmp eax, edi
jne 0x5d4cfe
mov eax, 0x7aff50
mov ecx, dword [0x77132c]
push ecx
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.005fc220
lea edx, [esp + 0x18]
mov ebx, 1
push edx
mov byte [esp + 0x1e4], 1
mov dword [esp + 0x20], ebx
call fcn.00617ab0
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x5d4d49
call fcn.005bb7c0
xor ecx, ecx
cmp eax, 8
setle cl
lea ecx, [ecx + ecx - 1]
mov dword [esp + 0x20], ecx
test bl, 1
mov dword [esp + 0x1e0], edi
je 0x5d4d72
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
je 0x5d4d72
add eax, 0xffffffff
cmp eax, edi
mov dword [ecx], eax
jne 0x5d4d72
call fcn.005fb120
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
mov dword [esp + 0x1e0], 0xffffffff
je 0x5d4d9a
add eax, 0xffffffff
cmp eax, edi
mov dword [ecx], eax
jne 0x5d4d9a
call fcn.005fb120
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
cmp dword [esi + 0x194], edi
jbe 0x5d4dcd
lea ebx, [ebx]
mov eax, dword [esi + 0x114]
push 0
push 0
push 0x416
push eax
call ebx
add edi, 1
cmp edi, dword [esi + 0x194]
jb 0x5d4db0
mov eax, dword [esi + 0xcc]
xor edx, edx
shr eax, 7
test al, 1
mov dword [esp + 0x50], edx
je 0x5d4de7
xor ecx, ecx
jmp 0x5d53d2
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.00589be0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x1ec], 2
call fcn.00582120
mov eax, dword [esp + 0x40]
test eax, eax
mov byte [esp + 0x1e0], 3
je 0x5d4e54
cmp dword [eax + 0x14], 0
je 0x5d4e54
lea ecx, [esp + 0x3c]
call fcn.005fd980
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 0x5d4edc
lea eax, [esp + 0x1bc]
push eax
mov ecx, esi
call fcn.0057fd10
push 0x64
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x1e8], 4
call fcn.005bbd50
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1e4], 5
call fcn.005b6590
lea ecx, [esp + 0x48]
mov byte [esp + 0x1e0], 4
call fcn.0057d0a0
lea ecx, [esp + 0x1bc]
mov byte [esp + 0x1e0], 3
call fcn.0057d0a0
lea ecx, [esp + 0xb4]
call fcn.005b5540
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5d4ee7
mov eax, dword [eax + 0x14]
cmp dword [esp + 0x20], 0
mov ebx, eax
mov dword [esi + 0x18c], eax
mov dword [esp + 0x1c], ebx
jne 0x5d4f72
mov eax, dword [0x823300]
test eax, eax
je 0x5d4f13
cmp dword [eax + 0x14], 0
je 0x5d4f13
mov ecx, 0x8232fc
call fcn.005fd980
mov edx, dword [esp + 0x1b4]
mov eax, dword [edx + 8]
push 0x8232fc
lea ecx, [esp + 0x1b8]
call eax
mov ecx, dword [esp + 0x80]
push ecx
push edi
push ebx
call fcn.005d4060
mov ebx, eax
mov eax, dword [esp + 0x4c]
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], ebx
je 0x5d4f5a
cmp dword [eax + 0x14], 0
je 0x5d4f5a
lea ecx, [esp + 0x3c]
call fcn.005fd980
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.005d4340
mov eax, dword [esi + 0x160]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x5d525e
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xc], 1
mov dword [esp + 0x34], ecx
jne 0x5d524f
mov eax, dword [ecx + 0x24]
test eax, eax
lea edi, [ecx + 0x20]
jne 0x5d4fb6
mov dword [esp + 0x24], eax
jmp 0x5d4fbd
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x5d4fc5
xor ebx, ebx
jmp 0x5d4fc8
mov ebx, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x28], ebx
je 0x5d502d
cmp dword [eax + 0x14], 0
je 0x5d502d
mov eax, dword [esi + 0x184]
sub eax, dword [esp + 0x24]
mov ecx, 0
cdq
sub eax, edx
sar eax, 1
sets cl
push 1
sub ecx, 1
and ecx, eax
mov eax, dword [esi + 0x188]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
mov edx, 0
sets dl
sub edx, 1
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 0x5d5234
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x2c]
test eax, eax
mov dword [esp + 0x58], vtable.wxObject.0
mov dword [esp + 0x5c], eax
je 0x5d5059
add dword [eax + 4], 1
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], vtable.wxBitmap.0
test eax, eax
mov byte [esp + 0x1e0], 6
je 0x5d5077
cmp dword [eax + 0x14], 0
jne 0x5d51f1
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.005813a0
lea ecx, [esp + 0x64]
push ecx
push eax
mov byte [esp + 0x1e8], 8
call fcn.005d2d50
add esp, 8
lea ecx, [esp + 0x48]
mov byte [esp + 0x1e0], 7
mov dword [esp + 0x48], vtable.wxObject.0
call fcn.005fd8d0
cmp dword [esp + 0x20], 1
jne 0x5d5181
xor ebx, ebx
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
jle 0x5d5181
xor edi, edi
cmp dword [esp + 0x24], edi
mov dword [esp + 0x60], edi
jle 0x5d5170
push 0x80
push ebx
push edi
lea ecx, [esp + 0x70]
call fcn.005a1e40
test al, al
je 0x5d5163
push 0xe
call fcn.0058d4e0
push 0xe
mov esi, eax
call fcn.0058d4e0
push 0xe
mov edi, eax
call fcn.0058d4e0
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx + 0x30]
add esp, 0xc
mov ecx, esi
call eax
mov edx, dword [edi]
mov ecx, edi
push eax
mov eax, dword [edx + 0x2c]
call eax
mov edx, dword [ebx]
mov ecx, ebx
push eax
mov eax, dword [edx + 0x28]
call eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x68]
push eax
push ecx
push edx
lea ecx, [esp + 0x78]
call fcn.005a1a50
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x34]
add edi, 1
cmp edi, dword [esp + 0x24]
mov dword [esp + 0x60], edi
jl 0x5d50f1
add ebx, 1
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x34], ebx
jl 0x5d50e5
mov dword [esp + 0x70], 0
push 0xffffffffffffffff
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x74]
mov byte [esp + 0x1e8], 9
mov dword [esp + 0x74], vtable.wxBitmap.0
call fcn.00581ce0
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1e4], 0xa
call fcn.005fd950
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1e0], 7
call fcn.0057d0a0
lea ecx, [esp + 0x64]
mov byte [esp + 0x1e0], 6
mov dword [esp + 0x64], vtable.wxObject.0
call fcn.005fd8d0
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x20], 1
jne 0x5d520e
test eax, eax
je 0x5d51ff
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x24]
push ebx
push edx
push eax
call fcn.005d4060
add esp, 0xc
mov ecx, dword [esi + 0x190]
push 0x8232fc
lea eax, [esp + 0x5c]
push eax
call fcn.005acbc0
lea ecx, [esp + 0x58]
mov byte [esp + 0x1e0], 3
call fcn.0057d0a0
mov ecx, dword [esi + 0x184]
add dword [esp + 0x18], ecx
add dword [esp + 0x44], 1
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x5d4f95
mov eax, dword [0x823300]
test eax, eax
je 0x5d5277
cmp dword [eax + 0x14], 0
je 0x5d5277
mov ecx, 0x8232fc
call fcn.005fd980
mov edx, dword [esp + 0x1b4]
mov eax, dword [edx + 8]
push 0x8232fc
lea ecx, [esp + 0x1b8]
call eax
lea ecx, [esp + 0x3c]
call fcn.005fd980
cmp dword [esp + 0x20], 1
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x14], 0
jne 0x5d52be
mov edx, dword [esp + 0x80]
push edx
push edi
push ebx
call fcn.005d4060
add esp, 0xc
mov ebx, eax
mov edi, dword [esp + 0x38]
test edi, edi
je 0x5d532b
call fcn.005b07b0
cmp eax, 0x190
jl 0x5d5321
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 0x5d5355
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.005b07b0
cmp eax, 0x1d6
jl 0x5d538e
mov eax, dword [esi + 0x190]
test eax, eax
je 0x5d5370
mov ecx, dword [eax + 8]
jmp 0x5d5372
xor ecx, ecx
mov eax, dword [esi + 0x114]
push ecx
push 0
push 0x436
push eax
call ebx
test eax, eax
je 0x5d538e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e0], 2
call fcn.0057d0a0
lea ecx, [esp + 0xb4]
mov dword [esp + 0x1e0], 0xffffffff
mov dword [esp + method.wxMemoryDCBase.virtual_0], vtable.wxMemoryDCBase.0
call fcn.005b6a40
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.005416ea
mov edi, eax
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x38], edi
call fcn.005feb60
mov eax, dword [esi + 0x160]
test eax, eax
mov dword [esp + 0x1e0], 0xb
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
je 0x5d55d3
add edi, 8
test dword [esi + 0xcc], 0x4008
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 8]
je 0x5d5473
cmp dword [ebx + 0xc], 2
jne 0x5d5473
call fcn.005b07b0
cmp eax, 0x1d8
jle 0x5d55bc
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 0x5d54ad
sub eax, 1
je 0x5d54a1
sub eax, 1
jne 0x5d55b0
mov edx, dword [ebx + 0x10]
mov dword [edi - 4], edx
mov byte [edi], 4
mov byte [edi + 1], 1
jmp 0x5d55b0
mov eax, dword [esi + 0xcc]
shr eax, 7
test al, 1
jne 0x5d54c1
mov edx, dword [esp + 0x50]
mov dword [edi - 8], edx
mov eax, dword [esi + 0xcc]
shr eax, 8
test al, 1
je 0x5d54da
mov eax, dword [ebx + 0x30]
cmp dword [eax - 8], 0
je 0x5d54da
mov dword [edi + 8], eax
mov edx, dword [ebx + 0x10]
mov dword [edi - 4], edx
cmp byte [ebx + 0x1d], 0
je 0x5d54e9
or byte [edi], 4
cmp byte [ebx + 0x1c], 0
je 0x5d54f2
or byte [edi], 1
mov eax, dword [ebx + 0x14]
sub eax, 0
je 0x5d55a7
sub eax, 1
je 0x5d55a1
sub eax, 1
jne 0x5d55a7
cmp byte [esp + 0x17], al
mov byte [edi + 1], 6
jne 0x5d553d
or byte [edi], 1
push 1
mov ecx, ebx
call fcn.005d18b0
test al, al
je 0x5d559d
mov eax, dword [esi]
mov edx, dword [eax + 0x370]
push 1
push ebx
mov ecx, esi
call edx
mov cl, 1
jmp 0x5d55ab
cmp byte [ebx + 0x1c], 0
je 0x5d559d
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x5d559d
lea ecx, [edi - 0x14]
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 8]
cmp dword [eax + 0xc], 1
mov dword [esp + 0x30], eax
jne 0x5d559d
cmp dword [eax + 0x14], 2
jne 0x5d559d
push 0
mov ecx, eax
call fcn.005d18b0
test al, al
je 0x5d5588
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
test ebx, ebx
mov dword [esp + 0x1c], eax
jne 0x5d5555
mov cl, 1
jmp 0x5d55ab
mov byte [edi + 1], 2
jmp 0x5d55ab
mov byte [edi + 1], 0
add dword [esp + 0x50], 1
add dword [esp + 0x18], 1
mov byte [esp + 0x17], cl
add edi, 0x14
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x5d544a
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.005416e5
mov ebx, dword [esi + 0x160]
xor edi, edi
add esp, 4
test ebx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
je 0x5d585f
mov eax, dword [ebx + 8]
cmp dword [eax + 0xc], 3
mov dword [esp + 0x18], eax
sete al
test al, al
mov byte [esp + 0x17], al
jne 0x5d5636
test dword [esi + 0xcc], 0x4008
je 0x5d5849
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 0x5d5666
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
add dword [esp + 0x24], eax
jmp 0x5d5849
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.005b07b0
cmp eax, 0x1d7
jl 0x5d56dd
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 0x5d5794
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
test eax, eax
mov dword [esp + 0x38], eax
jbe 0x5d576e
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 0x5d5740
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x3c], eax
mov edx, dword [ebx]
add eax, 1
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 0x5d57c8
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 0x5d5802
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 0x5d5819
cmp dword [esp + 0x20], 0xffffffff
jne 0x5d5811
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]
add eax, 1
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]
add edi, 1
test ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
jne 0x5d5610
test dword [esi + 0xcc], 0x4008
mov dword [esi + 0x194], edi
jne 0x5d587e
cmp dword [esi + 0x174], 0
jne 0x5d5899
push 1
jmp 0x5d588d
test edi, edi
jbe 0x5d5899
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.0057c9d0
mov ecx, esi
call fcn.005d3c70
lea ecx, [esp + 0x88]
mov dword [esp + 0x1e0], 0xffffffff
call fcn.005feb00
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.0054ae61
mov esp, ebp
pop ebp
ret