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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59699b
sub esp, 0x6c
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x18c]
test ecx, ecx
jne 0x596661
mov ecx, dword [esp + 0x78]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x7c]
cmp ebx, edx
jb 0x596580
mov ebp, dword [esp + 0x74]
jmp 0x5965bd
lea eax, [0x61c900]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.004476d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc ecx
mov ebp, eax
mov ebx, edx
mov eax, dword [esp + 0x70]
mov edx, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ebx
mov dword [ebp + ecx*4], 0x100
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.00596c10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x84]
test edx, edx
je 0x59661a
mov ebx, dword [esp + 0x88]
cmp ebx, 0xffff
jg 0x596614
lea ebp, [ebx + 5]
shl ebp, 3
mov esi, 1
jmp 0x596625
xor esi, esi
xor ebp, ebp
jmp 0x596625
mov ebx, dword [esp + 0x88]
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], ebp
xchg esi, eax
mov byte [esp + 0x2b], al
xchg esi, eax
xchg esi, eax
test al, al
xchg esi, eax
je 0x59665d
mov edi, dword [esp + 0x70]
mov dword [esp + 0x58], eax
mov eax, 0x109
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x58]
jmp 0x5968cb
xor edi, edi
jmp 0x596665
add esp, 0x6c
ret
mov dword [esp + 0x44], edi
mov eax, dword [0x7eea30]
mov dword [esp + 0x64], eax
mov ecx, dword [0x7eea34]
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov dword [esp + 4], edi
call fcn.00595f90
mov eax, dword [esp + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x180]
mov ebx, dword [ecx + 0x184]
mov dword [esp], ecx
mov ebp, dword [esp + 0x3c]
mov dword [esp + 4], ebp
mov esi, dword [esp + 0x38]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.00595ae0
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x188]
mov dword [esp], ecx
lea ecx, [eax + 0x10c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x13
mov dword [esp + 0xc], 0x13
mov dword [esp + 0x10], 7
call fcn.00597fa0
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x180]
mov edx, dword [eax + 0x184]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], ecx
call fcn.00595e10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
cmp eax, edx
jge 0x59674c
mov edx, dword [esp + 0x70]
mov ebx, dword [edx + 0x180]
mov ebp, dword [edx + 0x184]
movzx esi, byte [esp + 0x2b]
xchg esi, eax
test al, al
xchg esi, eax
jmp 0x596763
movzx ebx, byte [esp + 0x2b]
test bl, bl
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
je 0x5967bd
mov esi, dword [esp + 0x2c]
cmp eax, esi
jle 0x5967bd
mov dword [esp], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
movzx ecx, byte [esp + 0x80]
mov byte [esp + 8], cl
call fcn.005964a0
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xc], eax
call fcn.00595930
add esp, 0x6c
ret
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebx
cmp dword [0x7eea30], ebx
jne 0x596811
mov eax, dword [edx + 0x18c]
test eax, eax
jne 0x596845
movzx eax, byte [esp + 0x80]
test al, al
je 0x5967ea
mov eax, 3
jmp 0x5967ef
mov eax, 2
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 3
call fcn.00595770
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
jmp 0x596845
mov dword [esp], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
movzx eax, byte [esp + 0x80]
mov byte [esp + 0x10], al
call fcn.005961f0
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x60]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx + 8]
mov esi, dword [ebp]
mov edi, dword [ebp + 4]
mov ebp, dword [ebp + 8]
mov dword [esp], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
call fcn.00596eb0
add esp, 0x6c
ret
lea ebp, [edx + 1]
lea edx, [edx + esi - 0x101]
movsx edx, byte [edx]
imul edx, ebx
mov ebx, dword [esp + 0x44]
add edx, ebx
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x88]
movzx esi, byte [esp + 0x2b]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x84]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
cmp edx, eax
jge 0x596906
mov ebx, dword [edi + 0x160]
mov ebp, dword [edi + 0x15c]
cmp edx, ebx
jae 0x596991
mov ebx, dword [ebp + edx*4]
mov ebp, dword [0x7e9e74]
mov esi, dword [0x7e9e70]
lea edi, [edx - 0x101]
cmp ebp, edi
ja 0x596892
jmp 0x596988
mov edx, dword [esp + 0x44]
mov dword [esp + 0x50], eax
mov eax, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
jmp 0x596942
lea esi, [ebx + 1]
add ebx, edi
movsx ebx, byte [ebx]
imul ebx, ebp
add edx, ebx
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x34], esi
movzx esi, byte [esp + 0x2b]
mov ebx, dword [esp + 0x34]
cmp ebx, ecx
jge 0x59696f
mov ebp, dword [edi + 0x16c]
mov esi, dword [edi + 0x168]
cmp ebx, ebp
jae 0x59697f
mov ebp, dword [esi + ebx*4]
mov esi, dword [0x7e9ea4]
mov edi, dword [0x7e9ea0]
cmp ebx, esi
jb 0x59691d
jmp 0x596976
mov edi, edx
jmp 0x596665
mov eax, ebx
mov ecx, esi
call fcn.0045e650
mov eax, ebx
mov ecx, ebp
call fcn.0045e650
mov eax, edi
mov ecx, ebp
call fcn.0045e650
mov eax, edx
mov ecx, ebx
call fcn.0045e650
nop
call fcn.0045d190
jmp fcn.00596540