Function at 0x596040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x596493
sub esp, 0x6c
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 4]
movzx ecx, byte [ecx + 0x39]
test cl, cl
je 0x596455
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov dword [esp], ecx
call fcn.0058f2c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 4]
test edx, edx
jne 0x596449
lea ecx, [0x7c7680]
cmp ebx, ecx
jne 0x59643d
mov edx, eax
mov dword [esp + 0x30], eax
jne 0x59635b
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov ebx, dword [eax + 8]
test edx, edx
je 0x596266
mov eax, dword [esp + 0x70]
lea ebp, [eax + 0x10]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.005b0570
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x38], ecx
lea edi, [esp + 0x58]
xor eax, eax
call fcn.0044f1cb
nop
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 8]
test eax, eax
je 0x59625b
mov ecx, dword [eax]
mov edx, eax
call ecx
lea edi, [esp + 0x58]
mov esi, esp
call fcn.0044f6ae
lea eax, [0x7f8ca0]
mov dword [esp], eax
call fcn.00409f80
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
mov edi, dword [esp + 4]
mov dword [edi + 4], ecx
mov dword [edi + 8], ebx
mov ecx, dword [0xb91180]
test ecx, ecx
jne 0x596251
mov dword [edi], eax
mov ecx, dword [esp + 0x34]
movzx edx, word [ecx + 0x20]
mov word [edi + 0xc], dx
mov edx, dword [esp + 0x70]
mov ebx, dword [edx + 0xc]
movzx ebx, word [ebx]
mov word [edi + 0xe], bx
mov ebx, dword [edx + 0x48]
mov ebp, dword [edx + 0x4c]
mov eax, dword [edx + 0x44]
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebp
mov ebx, dword [0xb91180]
test ebx, ebx
jne 0x59623e
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0x48]
mov ebx, dword [ecx + 0x50]
mov ebp, dword [ecx + 0x4c]
mov dword [edi + 0x20], ebp
mov dword [edi + 0x24], ebx
mov ebx, dword [0xb91180]
test ebx, ebx
jne 0x59622b
mov dword [edi + 0x1c], eax
mov ebx, dword [ecx + 0x5c]
mov ebp, dword [ecx + 0x58]
mov eax, dword [ecx + 0x54]
mov dword [edi + 0x2c], ebp
mov dword [edi + 0x30], ebx
mov ecx, dword [0xb91180]
test ecx, ecx
jne 0x59621b
mov dword [edi + 0x28], eax
mov eax, dword [0xb91180]
lea ecx, [edi + 0x34]
test eax, eax
jne 0x5961eb
mov eax, edi
mov edi, ecx
lea esi, [esp + 0x58]
call fcn.0044f6ae
mov dword [edx + 0x50], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x6c
ret
mov dword [esp + 0x44], edi
lea eax, [0x8101a0]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
call fcn.004101b0
mov eax, dword [esp + 0x70]
lea edi, [eax + 0x50]
mov eax, dword [esp + 0x44]
call fcn.0044f0d0
jmp 0x5961d7
lea ecx, [edi + 0x28]
mov ebx, edi
mov edi, ecx
call fcn.0044f0d0
mov edi, ebx
jmp 0x5961ba
lea ebx, [edi + 0x1c]
mov ebp, edi
mov edi, ebx
call fcn.0044f0d0
mov edi, ebp
jmp 0x59619e
lea ebx, [edi + 0x10]
mov ebp, edi
mov edi, ebx
call fcn.0044f0d0
mov edi, ebp
jmp 0x59617e
call fcn.0044f0d0
jmp 0x596144
lea eax, [0x835f5c]
jmp 0x5960fe
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x28], ecx
lea edx, [0x7ac140]
mov dword [esp], edx
lea edx, [ecx + 0xa]
mov dword [esp + 0x20], edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.0043a890
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jbe 0x59648c
mov byte [eax], 4
cmp ecx, 1
jbe 0x596485
mov edx, dword [esp + 0x28]
lea ebx, [edx + 6]
mov ebp, ebx
sar ebx, 0x10
mov byte [eax + 1], bl
cmp ecx, 2
jbe 0x59647e
mov ebx, ebp
sar ebp, 8
xchg ebp, ebx
mov byte [eax + 2], bl
xchg ebp, ebx
cmp ecx, 3
jbe 0x596477
mov byte [eax + 3], bl
cmp ecx, 8
jbe 0x596470
mov ebx, edx
sar edx, 8
mov byte [eax + 8], dl
cmp ecx, 9
jbe 0x596469
mov byte [eax + 9], bl
mov edx, ebx
neg ebx
sar ebx, 0x1f
and ebx, 0xa
add ebx, eax
mov edi, dword [esp + 0x30]
mov ebp, dword [edi + 0x10]
mov esi, dword [edi + 0xc]
cmp edx, ebp
jle 0x596357
mov dword [esp + 0x40], eax
cmp esi, ebx
je 0x596325
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.0044f8d0
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x30]
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov edx, dword [0xb91180]
test edx, edx
jne 0x59634c
mov eax, dword [esp + 0x40]
mov dword [edi], eax
mov edx, eax
mov ebx, ecx
jmp 0x5960bd
mov eax, dword [esp + 0x40]
call fcn.0044f0d0
jmp 0x596343
mov ebp, edx
jmp 0x59630d
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov byte [esp + 4], 0xa
call fcn.0058e890
nop
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
lea eax, [0x7c7680]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], eax
nop
lea eax, [0x82fc2f]
mov dword [esp], eax
mov dword [esp + 4], 0x49
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004bd7c0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
nop
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
lea edx, [0x7c34e0]
mov dword [esp], edx
call fcn.00409f80
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
mov eax, dword [0xb91180]
test eax, eax
jne 0x596432
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
lea eax, [0x8b3870]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
add esp, 0x6c
ret
mov eax, dword [esp + 0x2c]
call fcn.0044f0d0
jmp 0x596420
mov edx, eax
mov eax, 0
jmp 0x5960a2
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
add esp, 0x6c
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x6c
ret
call fcn.004287c0
ud2
call fcn.004287c0
ud2
call fcn.004287c0
ud2
call fcn.004287c0
ud2
call fcn.004287c0
ud2
call fcn.004287c0
ud2
call fcn.0044d880
jmp fcn.00596040