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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x618fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x6e377c]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x6e377c]
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 0x596cb8
call fcn.00594cd0
mov eax, dword [str.msw.remap]
cmp eax, edi
jne 0x5960b6
mov eax, 0x683698
mov ecx, dword [0x63dcd0]
push ecx
push edi
push eax
lea ecx, [esp + 0x40]
call fcn.0050fcd0
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x1e4], edi
call fcn.005f5cc0
add esp, 4
test al, al
je 0x596124
mov eax, dword [str.msw.remap]
cmp eax, edi
jne 0x5960ee
mov eax, 0x683698
mov ecx, dword [0x63dcd0]
push ecx
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.0050fcd0
lea edx, [esp + 0x18]
mov ebx, 1
push edx
mov byte [esp + 0x1e4], 1
mov dword [esp + 0x20], ebx
call fcn.005f5c80
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x596139
call fcn.00565140
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 0x596160
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
cmp eax, 0xffffffff
je 0x596160
dec eax
mov dword [ecx], eax
cmp eax, edi
jne 0x596160
call fcn.0050ec00
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 0xc]
add ecx, 0xfffffff4
mov dword [esp + 0x1e0], 0xffffffff
cmp eax, 0xffffffff
je 0x596186
dec eax
mov dword [ecx], eax
cmp eax, edi
jne 0x596186
call fcn.0050ec00
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
cmp dword [esi + 0x194], edi
jbe 0x5961b1
mov eax, dword [esi + 0x114]
push 0
push 0
push 0x416
push eax
call ebx
inc edi
cmp edi, dword [esi + 0x194]
jb 0x596196
mov eax, dword [esi + 0xcc]
xor edx, edx
shr eax, 7
mov dword [esp + 0x50], edx
test al, 1
je 0x5961cb
xor ecx, ecx
jmp 0x5967c9
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.0040c580
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x1ec], 2
call fcn.00556af0
mov eax, dword [esp + 0x40]
mov byte [esp + 0x1e0], 3
test eax, eax
je 0x596238
cmp dword [eax + 0x14], 0
je 0x596238
lea ecx, [esp + 0x3c]
call fcn.00511900
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 0x5962c0
lea eax, [esp + 0x1bc]
push eax
mov ecx, esi
call fcn.0055a600
push 0x64
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x1e8], 4
call fcn.00564050
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1e4], 5
call fcn.00560890
lea ecx, [esp + 0x48]
mov byte [esp + 0x1e0], 4
call fcn.0055bd20
lea ecx, [esp + 0x1bc]
mov byte [esp + 0x1e0], 3
call fcn.0055bd20
lea ecx, [esp + 0xb4]
call fcn.0055f830
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5962cb
mov eax, dword [eax + 0x14]
cmp dword [esp + 0x20], 0
mov ebx, eax
mov dword [esi + 0x18c], eax
mov dword [esp + 0x1c], ebx
jne 0x596356
mov eax, dword [0x6ddd4c]
test eax, eax
je 0x5962f7
cmp dword [eax + 0x14], 0
je 0x5962f7
mov ecx, 0x6ddd48
call fcn.00511900
mov edx, dword [esp + 0x1b4]
mov eax, dword [edx + 8]
push 0x6ddd48
lea ecx, [esp + 0x1b8]
call eax
mov ecx, dword [esp + 0x80]
push ecx
push edi
push ebx
call fcn.00595430
mov ebx, eax
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x59633e
cmp dword [eax + 0x14], 0
je 0x59633e
lea ecx, [esp + 0x3c]
call fcn.00511900
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.00595730
mov eax, dword [esi + 0x160]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x596655
lea esp, [esp]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xc], 1
mov dword [esp + 0x34], ecx
jne 0x596646
mov eax, dword [ecx + 0x24]
lea edi, [ecx + 0x20]
test eax, eax
jne 0x5963a1
mov dword [esp + 0x24], eax
jmp 0x5963a8
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x5963b0
xor ebx, ebx
jmp 0x5963b3
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x28], ebx
test eax, eax
je 0x596414
cmp dword [eax + 0x14], 0
je 0x596414
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 0x59662c
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 0x59643f
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 0x59645d
cmp dword [eax + 0x14], 0
jne 0x5965e9
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.00555d80
lea ecx, [esp + 0x64]
push ecx
push eax
mov byte [esp + 0x1e8], 8
call fcn.00594140
add esp, 8
lea ecx, [esp + 0x48]
mov byte [esp + 0x1e0], 7
mov dword [esp + 0x48], vtable.wxObject.0
call fcn.00511800
cmp dword [esp + 0x20], 1
jne 0x596579
xor ebx, ebx
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x34], ebx
jle 0x596579
jmp 0x5964d0
xor edi, edi
cmp dword [esp + 0x24], edi
mov dword [esp + 0x60], edi
jle 0x59656a
push 0x80
push ebx
push edi
lea ecx, [esp + 0x70]
call fcn.0053bb00
test al, al
je 0x59655b
push 0xe
call fcn.0054a870
push 0xe
mov esi, eax
call fcn.0054a870
push 0xe
mov edi, eax
call fcn.0054a870
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.0053b720
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 0x5964e0
inc ebx
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x34], ebx
jl 0x5964d0
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.005566b0
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1e4], 0xa
call fcn.005118d0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1e0], 7
call fcn.0055bd20
lea ecx, [esp + 0x64]
mov byte [esp + 0x1e0], 6
mov dword [esp + 0x64], vtable.wxObject.0
call fcn.00511800
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x20], 1
jne 0x596606
test eax, eax
je 0x5965f7
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push eax
call fcn.00595430
add esp, 0xc
mov ecx, dword [esi + 0x190]
push 0x6ddd48
lea edx, [esp + 0x5c]
push edx
call fcn.005a5c80
lea ecx, [esp + 0x58]
mov byte [esp + 0x1e0], 3
call fcn.0055bd20
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 0x596380
mov eax, dword [0x6ddd4c]
test eax, eax
je 0x59666e
cmp dword [eax + 0x14], 0
je 0x59666e
mov ecx, 0x6ddd48
call fcn.00511900
mov edx, dword [esp + 0x1b4]
mov eax, dword [edx + 8]
push 0x6ddd48
lea ecx, [esp + 0x1b8]
call eax
lea ecx, [esp + 0x3c]
call fcn.00511900
cmp dword [esp + 0x20], 1
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x14], 0
jne 0x5966b5
mov edx, dword [esp + 0x80]
push edx
push edi
push ebx
call fcn.00595430
add esp, 0xc
mov ebx, eax
mov edi, dword [esp + 0x38]
test edi, edi
je 0x596722
call fcn.0053a380
cmp eax, 0x190
jl 0x596718
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 0x59674c
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.0053a380
cmp eax, 0x1d6
jl 0x596785
mov eax, dword [esi + 0x190]
test eax, eax
je 0x596767
mov ecx, dword [eax + 8]
jmp 0x596769
xor ecx, ecx
mov eax, dword [esi + 0x114]
push ecx
push 0
push 0x436
push eax
call ebx
test eax, eax
je 0x596785
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e0], 2
call fcn.0055bd20
lea ecx, [esp + 0xb4]
mov dword [esp + 0x1e0], 0xffffffff
mov dword [esp + method.wxMemoryDCBase.virtual_0], vtable.wxMemoryDCBase.0
call fcn.00560d40
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.005b3e2c
mov edi, eax
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x38], edi
call fcn.00511750
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 0x5969cc
add edi, 8
test dword [esi + 0xcc], 0x4008
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 8]
je 0x59686a
cmp dword [ebx + 0xc], 2
jne 0x59686a
call fcn.0053a380
cmp eax, 0x1d8
jle 0x5969b5
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 0x5968a4
sub eax, 1
je 0x596898
sub eax, 1
jne 0x5969aa
mov edx, dword [ebx + 0x10]
mov dword [edi - 4], edx
mov byte [edi], 4
mov byte [edi + 1], 1
jmp 0x5969aa
mov eax, dword [esi + 0xcc]
shr eax, 7
test al, 1
jne 0x5968b8
mov edx, dword [esp + 0x50]
mov dword [edi - 8], edx
mov eax, dword [esi + 0xcc]
shr eax, 8
test al, 1
je 0x5968d1
mov eax, dword [ebx + 0x30]
cmp dword [eax - 8], 0
je 0x5968d1
mov dword [edi + 8], eax
mov edx, dword [ebx + 0x10]
mov dword [edi - 4], edx
cmp byte [ebx + 0x1d], 0
je 0x5968e0
or byte [edi], 4
cmp byte [ebx + 0x1c], 0
je 0x5968e9
or byte [edi], 1
mov eax, dword [ebx + 0x14]
sub eax, 0
je 0x5969a2
sub eax, 1
je 0x59699c
sub eax, 1
jne 0x5969a2
mov byte [edi + 1], 6
cmp byte [esp + 0x17], al
jne 0x596934
or byte [edi], 1
push 1
mov ecx, ebx
call fcn.00592d20
test al, al
je 0x596998
mov eax, dword [esi]
mov edx, dword [eax + 0x370]
push 1
push ebx
mov ecx, esi
call edx
mov cl, 1
jmp 0x5969a6
cmp byte [ebx + 0x1c], 0
je 0x596998
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x596998
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 0x596998
cmp dword [eax + 0x14], 2
jne 0x596998
push 0
mov ecx, eax
call fcn.00592d20
test al, al
je 0x596983
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 0x596950
mov cl, 1
jmp 0x5969a6
mov byte [edi + 1], 2
jmp 0x5969a6
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 0x596841
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.005b4dc6
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 0x596c59
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 0x596a36
test dword [esi + 0xcc], 0x4008
je 0x596c45
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 0x596a66
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
add dword [esp + 0x24], eax
jmp 0x596c45
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.0053a380
cmp eax, 0x1d7
jl 0x596add
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 0x596b92
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 0x596b6e
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 0x596b40
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 0x596bc6
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 0x596c00
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 0x596c17
cmp dword [esp + 0x20], 0xffffffff
jne 0x596c0f
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 0x596a10
test dword [esi + 0xcc], 0x4008
mov dword [esi + 0x194], edi
jne 0x596c78
cmp dword [esi + 0x174], 0
jne 0x596c93
push 1
jmp 0x596c87
test edi, edi
jbe 0x596c93
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.00557990
mov ecx, esi
call fcn.00595050
lea ecx, [esp + 0x88]
mov dword [esp + 0x1e0], 0xffffffff
call fcn.00511730
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.005bae23
mov esp, ebp
pop ebp
ret