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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x599e4f
sub esp, 0x68
mov ebx, dword [esp + 0x6c]
mov ebp, dword [ebx + 0x198]
mov ecx, dword [ebx + 0x19c]
mov esi, dword [ebx + 0x1a0]
mov eax, dword [ebx + 0x1a4]
mov edi, ecx
sub ecx, eax
cmp ecx, 4
jge 0x599607
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.00595a80
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5995a9
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
add esp, 0x68
ret
nop
cmp edi, eax
jb 0x599e47
sub esi, eax
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and eax, esi
movzx esi, byte [ebp + eax + 1]
shl esi, 0x10
movzx edi, byte [ebp + eax + 2]
shl edi, 8
or edi, esi
movzx ebp, byte [ebp + eax + 3]
or ebp, edi
mov dword [esp + 0x24], ebp
cmp ebp, 0x10000
jle 0x5997db
mov dword [esp], ebx
mov byte [esp + 4], 0x50
call fcn.005986b0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00408d20
mov eax, dword [esp + 4]
lea ecx, [0x658720]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
lea eax, [0x6f5b08]
mov dword [esp + 0x64], eax
lea eax, [0x69ff2b]
mov dword [esp], eax
mov dword [esp + 4], 0x45
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004c11e0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
lea edx, [0x668840]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409040
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x59973b
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xc4], ecx
mov ecx, dword [0x887d70]
test ecx, ecx
jne 0x59972a
mov eax, dword [esp + 0x3c]
mov dword [edx + 0xc8], eax
jmp 0x5997ab
lea edi, [edx + 0xc8]
mov eax, dword [esp + 0x3c]
call fcn.0045f750
jmp 0x5997ab
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], ecx
lea eax, [0x662280]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x887d70]
test ecx, ecx
jne 0x59976e
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
jmp 0x59977e
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x48]
call fcn.0045f750
mov eax, ecx
lea ecx, [0x6f64d0]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xc4], ecx
mov ecx, dword [0x887d70]
test ecx, ecx
jne 0x5997a0
mov dword [edx + 0xc8], eax
jmp 0x5997ab
lea edi, [edx + 0xc8]
call fcn.0045f750
mov eax, dword [edx + 0xc4]
mov ecx, dword [edx + 0xc8]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x68
ret
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x24]
lea esi, [ebp + 4]
mov edi, dword [ebx + 0x19c]
sub edi, dword [ebx + 0x1a4]
cmp edi, esi
jge 0x599827
mov dword [esp], ebx
mov byte [esp + 4], 0
call fcn.00595a80
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x5997d3
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
add esp, 0x68
ret
nop
mov byte [ebx + 0x1a8], 0
nop
mov edx, dword [ebx + 0x1a0]
mov ebp, dword [ebx + 0x198]
mov edi, dword [ebx + 0x19c]
mov eax, dword [ebx + 0x1a4]
sub edi, eax
cmp edi, esi
jl 0x599850
mov edi, esi
lea ecx, [edi + eax]
cmp edx, ecx
jb 0x599e42
cmp eax, ecx
ja 0x599e3d
mov dword [ebx + 0x1a4], ecx
sub edx, eax
neg edx
sar edx, 0x1f
and eax, edx
lea edx, [ebp + eax]
test edi, edi
jle 0x599881
mov byte [ebx + 0x1a8], 0xff
jbe 0x599e34
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], edx
movzx eax, byte [ebp + eax]
cmp al, 0xb
ja 0x5999d7
cmp al, 2
ja 0x5998fe
test al, al
jne 0x5998b7
lea ecx, [0x6f7044]
lea eax, [0x887b48]
jmp 0x599c63
cmp al, 1
jne 0x5998dd
lea eax, [0x684ce0]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x6f6fcc]
jmp 0x599c63
lea eax, [0x6830c0]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x6f70bc]
jmp 0x599c63
cmp al, 5
ja 0x599965
cmp al, 4
jne 0x59994b
cmp word [ebx + 0x24], 0x304
jne 0x59992a
lea eax, [0x678320]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
lea ecx, [0x6f708c]
jmp 0x599942
lea eax, [0x667d00]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
lea ecx, [0x6f7074]
mov edi, dword [esp + 0x20]
jmp 0x599c63
cmp al, 5
jne 0x599b16
lea ecx, [0x6f7014]
lea eax, [0x887b48]
jmp 0x599c63
cmp al, 8
je 0x5999b6
cmp al, 0xb
jne 0x599b16
cmp word [ebx + 0x24], 0x304
jne 0x599995
lea eax, [0x671f80]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
lea ecx, [0x6f6f54]
jmp 0x5999ad
lea eax, [0x667a00]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
lea ecx, [0x6f6f3c]
mov edi, dword [esp + 0x20]
jmp 0x599c63
lea eax, [0x667b80]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x6f6ffc]
jmp 0x599c63
cmp al, 0xf
ja 0x599ab3
cmp al, 0xd
ja 0x599a6a
cmp al, 0xc
je 0x599a49
cmp word [ebx + 0x24], 0x304
jne 0x599a16
lea eax, [0x678280]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
lea ecx, [0x6f6f84]
mov edx, eax
mov eax, dword [esp + 0x6c]
jmp 0x599a3e
lea eax, [0x6757e0]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 0x6c]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
lea ecx, [0x6f6f6c]
mov edi, dword [esp + 0x20]
mov eax, edx
jmp 0x599c63
lea eax, [0x667e20]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x6f70d4]
jmp 0x599c63
cmp al, 0xe
jne 0x599a80
lea ecx, [0x6f70a4]
lea eax, [0x887b48]
jmp 0x599c63
lea eax, [0x672000]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 0x6c]
cmp word [eax + 0x24], 0x303
setae cl
mov edx, dword [esp + 4]
mov byte [edx + 0xc], cl
mov edi, dword [esp + 0x20]
lea ecx, [0x6f6fb4]
mov eax, edx
jmp 0x599c63
cmp al, 0x14
ja 0x599b04
cmp al, 0x10
je 0x599ae3
cmp al, 0x14
jne 0x599b16
lea eax, [0x667be0]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x6f702c]
jmp 0x599c63
lea eax, [0x667ac0]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x6f6fe4]
jmp 0x599c63
cmp al, 0x16
je 0x599c47
cmp al, 0x18
je 0x599c29
mov dword [esp], ebx
mov byte [esp + 4], 0xa
call fcn.00598880
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x38], ecx
lea edx, [0x668840]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409040
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x599b91
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xc4], ecx
mov ecx, dword [0x887d70]
test ecx, ecx
jne 0x599b80
mov eax, dword [esp + 0x38]
mov dword [edx + 0xc8], eax
jmp 0x599c01
lea edi, [edx + 0xc8]
mov eax, dword [esp + 0x38]
call fcn.0045f750
jmp 0x599c01
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], ecx
lea eax, [0x662280]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x887d70]
test ecx, ecx
jne 0x599bc4
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
jmp 0x599bd4
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x44]
call fcn.0045f750
mov eax, ecx
lea ecx, [0x6f64d0]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xc4], ecx
mov ecx, dword [0x887d70]
test ecx, ecx
jne 0x599bf6
mov dword [edx + 0xc8], eax
jmp 0x599c01
lea edi, [edx + 0xc8]
call fcn.0045f750
mov eax, dword [edx + 0xc4]
mov ecx, dword [edx + 0xc8]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x68
ret
lea eax, [0x667ca0]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x6f705c]
jmp 0x599c63
lea eax, [0x667a60]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x20]
lea ecx, [0x6f6f9c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
lea edx, [0x659160]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edi
call fcn.00448460
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov dword [esp], eax
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 8], edx
call fcn.004600e0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x30]
mov dword [esp], edx
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0xc], ebx
call ecx
movzx eax, byte [esp + 0x10]
test al, al
je 0x599d1d
mov eax, dword [esp + 0x28]
test eax, eax
je 0x599cfb
mov ecx, dword [eax + 4]
jmp 0x599cfd
mov ecx, eax
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov byte [esp + 4], 0xa
call fcn.00598880
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x34], ecx
lea edx, [0x668840]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00409040
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x599d9c
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xc4], ecx
mov ecx, dword [0x887d70]
test ecx, ecx
jne 0x599d8b
mov eax, dword [esp + 0x34]
mov dword [edx + 0xc8], eax
jmp 0x599e0c
lea edi, [edx + 0xc8]
mov eax, dword [esp + 0x34]
call fcn.0045f750
jmp 0x599e0c
mov dword [esp + 0x40], ecx
mov dword [esp + 0x54], edx
lea eax, [0x662280]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
mov ecx, dword [0x887d70]
test ecx, ecx
jne 0x599dcf
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
jmp 0x599ddf
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x40]
call fcn.0045f750
mov eax, ecx
lea ecx, [0x6f64d0]
mov edx, dword [esp + 0x6c]
mov dword [edx + 0xc4], ecx
mov ecx, dword [0x887d70]
test ecx, ecx
jne 0x599e01
mov dword [edx + 0xc8], eax
jmp 0x599e0c
lea edi, [edx + 0xc8]
call fcn.0045f750
mov eax, dword [edx + 0xc4]
mov ecx, dword [edx + 0xc8]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x68
ret
xor eax, eax
mov ecx, edi
call fcn.0045f7d0
call fcn.0045f830
call fcn.0045f810
mov ecx, edi
call fcn.0045f830
nop
call fcn.0045e340
jmp fcn.00599590