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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x40]
cmp eax, dword [ecx + 8]
jbe 0x596820
sub esp, 0xc0
mov eax, dword [esp + 0xc4]
mov eax, dword [eax]
mov ecx, dword [esp + 0xc8]
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x10]
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x596288
inc ebp
mov esi, ecx
mov ecx, dword [esp + 0xc8]
cmp ebp, edx
jge 0x5962ae
movzx ecx, byte [ebx + ebp]
cmp cl, 1
jne 0x59629c
mov ecx, 1
jmp 0x59627e
cmp cl, 0x40
jne 0x5962aa
mov ecx, esi
mov edi, 1
jmp 0x59627e
mov ecx, esi
jmp 0x59627e
mov dword [esp + 0x78], eax
mov edx, dword [eax + 0x24]
mov edx, dword [edx + 0x20]
test edx, edx
jne 0x5966fe
xchg edi, eax
mov byte [esp + 0x2f], al
xchg edi, eax
xchg esi, eax
mov byte [esp + 0x2e], al
xchg esi, eax
lea eax, [0x7aab80]
mov dword [esp], eax
call fcn.00409dc0
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x24]
mov edx, dword [esp + 4]
mov ebx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0xc]
test ebx, ebx
jle 0x5964de
mov dword [esp + 0x8c], edx
mov dword [esp + 0x58], ebx
movzx ebp, byte [esp + 0x2e]
movzx esi, byte [esp + 0x2f]
xor edi, edi
jmp 0x596472
mov ebx, dword [esp + 0x80]
lea esi, [ebx + 0xc]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x80], esi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov ebx, dword [esi]
mov ebp, dword [edx + 0x38]
mov edi, dword [edx + 0x34]
mov edx, dword [edx + 0x30]
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call fcn.004021b0
movzx eax, byte [esp + 0x18]
test al, al
jne 0x596514
mov eax, dword [esp + 0x4c]
inc eax
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jl 0x59630f
mov eax, dword [esp + 0x3c]
inc eax
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jge 0x596430
mov edx, dword [esp + 0x84]
add edx, 0xc
mov ebx, dword [esp + 0xc8]
movzx ebp, byte [esp + 0x2e]
mov esi, dword [esp + 0x8c]
movzx edi, byte [esp + 0x2f]
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0xc8]
mov dword [esp + 0x3c], eax
mov eax, edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x84], eax
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
mov edx, dword [edx + 0x2c]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x596574
test edx, edx
je 0x596574
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5963fa
mov eax, dword [edx + 0x4c]
cmp eax, 1
je 0x59656a
movzx eax, byte [esp + 0x2f]
test al, al
je 0x596430
mov ebx, dword [edx + 0x4c]
cmp ebx, 3
jne 0x596430
mov ebx, dword [edi + 0x2c]
mov esi, dword [edi + 0x28]
test ebx, ebx
je 0x59653f
mov dword [esp + 0x6c], edx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x5c], al
xor eax, eax
mov dword [esp + 0x4c], eax
jmp 0x596321
mov eax, dword [esp + 0x40]
inc eax
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jge 0x5964de
mov edx, dword [esp + 0x88]
add edx, 0x30
movzx ebx, byte [esp + 0x2e]
mov ebp, dword [esp + 0x8c]
movzx esi, byte [esp + 0x2f]
mov ebx, ecx
movzx ebp, byte [esp + 0x2e]
mov ecx, edx
mov edi, eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x40], edi
lea edi, [esp + 0x90]
mov esi, ecx
call fcn.0044d1b8
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x5966c8
mov edi, edx
lea esi, [esp + 0x90]
call fcn.0044d1b8
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5966b6
mov ecx, dword [edx + 4]
mov esi, eax
mov eax, dword [edx]
test ecx, ecx
jle 0x596430
mov dword [esp + 0x54], ecx
mov edi, dword [esp + 0xc8]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
jmp 0x5963be
lea eax, [0x7aab80]
mov dword [esp], eax
call fcn.00409dc0
mov eax, dword [esp + 4]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xc0
ret
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xc0
ret
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
add esp, 0xc0
ret
movzx eax, byte [esp + 0x2f]
jmp 0x59640b
mov dword [esp], eax
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
call fcn.0057a3a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x5965b7
movzx ebp, byte [esp + 0x2e]
xchg ebp, eax
test al, al
xchg ebp, eax
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0xc8]
mov edx, eax
jmp 0x5963ec
mov dword [esp + 0x74], ecx
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov byte [esp + 4], 0x50
call fcn.0058fa70
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0046a6e0
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x44]
mov edx, dword [edx + 0x10]
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], 0
lea edx, [0x7edb5e]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x29
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x10], edx
lea edx, [0x7dc2bb]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
call fcn.0043bfe0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x70], ecx
lea edx, [0x787c00]
mov dword [esp], edx
call fcn.00409dc0
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [edi + 4], eax
mov eax, dword [0xbc7270]
test eax, eax
jne 0x5966ab
mov eax, dword [esp + 0x70]
mov dword [edi], eax
mov dword [esp + 0xcc], 0
lea eax, [0x8f8790]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edi
add esp, 0xc0
ret
mov eax, dword [esp + 0x70]
call fcn.0044cc20
jmp 0x596685
movzx ecx, byte [esp + 0x2f]
test cl, cl
jne 0x5964b1
jmp 0x596430
lea eax, [0x7aab80]
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [esp + 0x90]
mov dword [esp + 8], eax
call fcn.0040f650
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x58]
movzx ebp, byte [esp + 0x2e]
jmp 0x5964a7
movzx edx, byte [ecx + 0xc]
test dl, dl
je 0x5967c8
mov edx, dword [ecx + 0x24]
mov ebx, dword [ecx + 0x20]
mov ebp, dword [ecx + 0x1c]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ebx
lea eax, [0x78fda0]
mov dword [esp], eax
call fcn.00409dc0
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x28]
mov edi, dword [esp + 4]
mov dword [edi + 4], edx
mov dword [edi + 8], ecx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x5967c1
mov dword [edi], eax
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x14], ecx
mov ecx, dword [0xbc7270]
test ecx, ecx
jne 0x5967ab
mov eax, dword [esp + 0x7c]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
mov dword [esp], edi
mov eax, dword [edx]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ecx
add esp, 0xc0
ret
lea ecx, [edi + 0xc]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x7c]
call fcn.0044cc20
mov edi, edx
jmp 0x596772
call fcn.0044cc20
jmp 0x596753
mov edx, dword [0xbae4a8]
mov ebx, dword [0xbae4a4]
mov ebp, dword [0xbae4a0]
xchg edi, eax
test al, al
xchg edi, eax
je 0x5967f7
xchg esi, eax
test al, al
xchg esi, eax
jne 0x596713
add ebx, 0xfffffffc
test ebx, ebx
jge 0x596713
jmp 0x596812
cmp ebx, 3
jb 0x596819
add edx, 0xfffffffd
mov edi, edx
neg edx
sar edx, 0x1f
and edx, 6
add ebp, edx
add ebx, 0xfffffffd
mov edx, edi
jmp 0x5967e0
call fcn.00426730
ud2
call fcn.00426730
ud2
call fcn.0044b4c0
jmp fcn.00596240