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

Disassembly:
mov ecx, dword [0x7da588]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x68]
cmp eax, dword [ecx + 8]
jbe 0x599490
sub esp, 0xe8
mov eax, dword [esp + 0xec]
mov dword [esp], eax
call fcn.00592860
mov eax, dword [esp + 4]
test eax, eax
je 0x598b56
mov edx, dword [esp + 0xec]
xor ecx, ecx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
jmp 0x598b7f
mov byte [esp + 0xf8], 0
add esp, 0xe8
ret
mov edx, dword [esp + 0xec]
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0xd4]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov edi, dword [eax]
cmp edi, 3
je 0x598c4c
mov dword [esp + 0x54], ecx
cmp edi, 4
jne 0x598d10
lea edi, [esp + 0xb8]
xor eax, eax
call fcn.0046c08a
mov ecx, dword [esp + 0xd0]
mov edi, dword [ecx + 0x20]
mov eax, dword [ecx + 0x24]
mov ebp, dword [ecx + 0x28]
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ebp
mov ebp, dword [ecx + 0x38]
mov eax, dword [ecx + 0x3c]
mov edi, dword [ecx + 0x40]
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
lea edi, [esp + 0xa0]
mov eax, esi
lea esi, [esp + 0xb8]
call fcn.0046c564
mov ecx, dword [esp + 0xd0]
mov ebp, dword [ecx + 4]
mov dword [esp + 0x50], ebp
mov esi, dword [ecx + 8]
mov dword [esp + 0x4c], esi
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x48], ecx
mov edi, dword [edx + 0x140]
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
jmp 0x5990fa
test ecx, ecx
jne 0x598d6d
cmp byte [eax + 0x45], 1
jne 0x598d21
cmp byte [eax + 0x46], 1
jne 0x598d21
lea eax, [0x5e9f00]
mov dword [esp], eax
call fcn.0040d1f0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xd0]
movzx edx, byte [eax + 0x45]
mov byte [ecx], dl
movzx eax, byte [eax + 0x46]
mov byte [ecx + 1], al
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0xd4]
nop
mov ebp, dword [esp + 0xec]
mov byte [ebp + 0xf8], 0
inc dword [ebp + 0xf4]
mov esi, dword [ebp + 0xe8]
mov edi, dword [ebp + 0xf0]
cmp esi, edi
jbe 0x598dc8
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0x54], ecx
mov eax, dword [ebp + 0xe4]
lea ecx, [edi + edi*8]
lea eax, [eax + ecx*8]
cmp dword [eax], 2
sete al
mov byte [ebp + 0xdd], al
inc dword [ebp + 0xf0]
mov dword [esp], ebp
call fcn.00592860
mov eax, dword [esp + 4]
test eax, eax
jne 0x598b65
jmp 0x598db9
mov eax, dword [0x790514]
mov dword [esp + 0x50], eax
xor edi, edi
jmp 0x598def
nop
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [edx], 4
mov dword [edx + 8], 0x20
mov ebp, dword [0x7da640]
test ebp, ebp
je 0x598d4c
mov ebp, dword [edx + 4]
call fcn.0046be70
mov dword [edi], ebp
lea ebp, [0x61516e]
mov dword [edx + 4], ebp
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ebx
mov byte [esp + 0xf8], 0
add esp, 0xe8
ret
nop
mov ecx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [edx], 4
mov dword [edx + 8], 0x1f
mov ebp, dword [0x7da640]
test ebp, ebp
je 0x598d98
mov ebp, dword [edx + 4]
call fcn.0046be70
mov dword [edi], ebp
lea ebp, [0x614aa1]
mov dword [edx + 4], ebp
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ebx
mov byte [esp + 0xf8], 0
add esp, 0xe8
ret
mov byte [esp + 0xf8], 0
add esp, 0xe8
ret
mov eax, edi
mov ecx, esi
call fcn.0046bef0
mov eax, dword [esp + 0x30]
lea edi, [eax + 1]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0xd4]
mov esi, dword [esp + 0x20]
cmp edi, eax
jge 0x598ffe
mov ebp, dword [0x790514]
cmp edi, ebp
jae 0x5990d6
mov dword [esp + 0x30], edi
lea ebp, [edi + edi*2]
mov ebx, dword [0x790510]
lea ebx, [ebx + ebp*8]
mov ebp, edi
lea edi, [esp + 0x88]
mov esi, ebx
call fcn.0046c564
mov ecx, dword [edx + 0x140]
mov dword [esp + 0x4c], ecx
xor ebx, ebx
jmp 0x599062
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x4c], eax
lea ecx, [0x5dd460]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044ffa0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xe4], eax
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x48], ecx
lea edx, [0x5dd460]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044ffa0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xe0], eax
lea edi, [esp + 0x58]
xor eax, eax
call fcn.0046c08a
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x8c]
cmp edx, ecx
jl 0x598ed4
mov edx, ecx
mov ecx, dword [esp + 0x88]
cmp ecx, eax
je 0x598eef
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0046c780
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x98]
cmp ecx, edx
jg 0x598f00
mov edx, ecx
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x94]
cmp ecx, ebx
je 0x598f1f
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0046c780
mov ecx, dword [esp + 0xec]
mov edx, dword [ecx + 0x144]
mov ebx, dword [ecx + 0x140]
inc ebx
mov ebp, dword [ecx + 0x13c]
cmp edx, ebx
jae 0x598fa3
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5e9f60]
mov dword [esp + 0x10], eax
call fcn.00450060
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xec]
mov dword [ebx + 0x144], eax
mov eax, dword [0x7da640]
test eax, eax
je 0x598f92
call fcn.0046be80
mov dword [edi], ecx
mov ebp, dword [ebx + 0x13c]
mov dword [edi + 4], ebp
mov dword [ebx + 0x13c], ecx
mov ebx, edx
mov ebp, ecx
mov ecx, dword [esp + 0xec]
mov dword [ecx + 0x140], ebx
mov edx, dword [0x7da640]
lea ebx, [ebx + ebx*2]
lea edi, [ebp + ebx*8 - 0x18]
test edx, edx
je 0x598fe9
mov dword [esp + 0xdc], edi
lea eax, [0x5e9f60]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
call fcn.00412350
mov ecx, dword [esp + 0xec]
mov edi, dword [esp + 0xdc]
lea esi, [esp + 0x58]
call fcn.0046c564
mov edx, dword [esp + 0xec]
jmp 0x598dd1
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x599021
mov edx, dword [0x7da640]
test edx, edx
je 0x59901f
call fcn.0046be80
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x59904a
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov ecx, dword [0x7da640]
test ecx, ecx
je 0x599048
call fcn.0046be80
mov dword [edi], ebp
mov ecx, dword [eax]
mov dword [edi + 4], ecx
mov dword [eax], ebp
mov byte [esp + 0xf8], 1
add esp, 0xe8
ret
inc ebx
mov eax, dword [esp + 0x50]
mov ebp, dword [esp + 0x30]
cmp ebx, ecx
jge 0x598e36
mov esi, dword [edx + 0x140]
cmp ebx, esi
jae 0x5990cd
mov esi, dword [esp + 0x8c]
mov edi, dword [edx + 0x13c]
lea eax, [ebx + ebx*2]
lea ebp, [edi + eax*8]
lea eax, [edi + eax*8]
cmp dword [ebp + 4], esi
je 0x599093
xor eax, eax
jmp 0x5990c4
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x88]
mov eax, dword [eax]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004030b0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0xec]
mov ebx, dword [esp + 0x28]
test al, al
je 0x599059
jmp 0x598dd1
mov eax, ebx
mov ecx, esi
call fcn.0046bef0
mov eax, edi
mov ecx, ebp
call fcn.0046bef0
lea eax, [ebx + 1]
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
cmp ebx, edi
jge 0x5991b5
mov eax, dword [edx + 0x140]
cmp ebx, eax
jae 0x599486
mov eax, dword [esp + 0xa4]
mov ecx, dword [edx + 0x13c]
lea esi, [ebx + ebx*2]
lea ebp, [ecx + esi*8]
lea ecx, [ecx + esi*8]
cmp dword [ebp + 4], eax
je 0x599133
xor eax, eax
jmp 0x599160
mov edx, dword [esp + 0xa0]
mov ecx, dword [ecx]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004030b0
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0xec]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x44]
test al, al
je 0x5990df
nop
mov dword [edx], 4
mov dword [edx + 8], 0x1e
mov ecx, dword [0x7da640]
test ecx, ecx
jne 0x599184
cmp ebx, edi
jmp 0x599192
mov ecx, dword [edx + 4]
mov eax, edi
call fcn.0046be70
mov dword [edi], ecx
cmp ebx, eax
lea ecx, [0x614432]
mov dword [edx + 4], ecx
mov ebx, dword [esp + 0x50]
mov dword [edx + 0x14], ebx
mov ebx, dword [esp + 0x4c]
mov dword [edx + 0x18], ebx
mov ebx, dword [esp + 0x48]
mov dword [edx + 0x1c], ebx
jmp 0x599391
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x50], eax
lea ecx, [0x5dd460]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044ffa0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xe4], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x4c], ecx
lea edx, [0x5dd460]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044ffa0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xe0], eax
lea edi, [esp + 0x70]
xor eax, eax
call fcn.0046c08a
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xa4]
cmp edx, ecx
jl 0x599259
mov edx, ecx
mov ecx, dword [esp + 0xa0]
cmp ecx, eax
je 0x599274
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0046c780
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0xb0]
cmp ecx, edx
jg 0x599288
mov edx, ecx
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0xac]
cmp ecx, ebx
je 0x5992a7
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.0046c780
mov ecx, dword [esp + 0xec]
mov edx, dword [ecx + 0x144]
mov ebx, dword [ecx + 0x140]
inc ebx
mov ebp, dword [ecx + 0x13c]
cmp edx, ebx
jae 0x59932b
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5e9f60]
mov dword [esp + 0x10], eax
call fcn.00450060
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xec]
mov dword [ebx + 0x144], eax
mov eax, dword [0x7da640]
test eax, eax
je 0x59931a
call fcn.0046be80
mov dword [edi], ecx
mov ebp, dword [ebx + 0x13c]
mov dword [edi + 4], ebp
mov dword [ebx + 0x13c], ecx
mov ebx, edx
mov ebp, ecx
mov ecx, dword [esp + 0xec]
mov dword [ecx + 0x140], ebx
mov edx, dword [0x7da640]
lea ebx, [ebx + ebx*2]
lea edi, [ebp + ebx*8 - 0x18]
test edx, edx
je 0x599371
mov dword [esp + 0xdc], edi
lea eax, [0x5e9f60]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
call fcn.00412350
mov ecx, dword [esp + 0xec]
mov edi, dword [esp + 0xdc]
lea esi, [esp + 0x70]
call fcn.0046c564
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
cmp ecx, edx
lea ecx, [0x614432]
mov edx, dword [esp + 0xec]
jl 0x599477
mov ebx, dword [esp + 0x20]
inc ebx
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
jb 0x5993ad
mov eax, dword [esp + 0xd4]
jmp 0x5993f5
mov eax, dword [esp + 0xd4]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x5e9f60]
mov dword [esp + 0x10], eax
call fcn.00450060
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [0x614432]
mov edx, dword [esp + 0xec]
mov esi, eax
mov eax, ebp
mov ebp, esi
mov esi, dword [0x7da640]
lea edi, [ebx + ebx*2]
lea edi, [eax + edi*8 - 0x18]
test esi, esi
je 0x59945c
mov dword [esp + 0xd8], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0xdc], edi
lea eax, [0x5e9f60]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0xb8]
mov dword [esp + 8], eax
call fcn.00412350
mov eax, dword [esp + 0xd8]
lea ecx, [0x614432]
mov edx, dword [esp + 0xec]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0xdc]
lea esi, [esp + 0xb8]
call fcn.0046c564
mov ecx, dword [esp + 0x54]
mov edx, ebx
mov ebx, eax
mov eax, ebp
jmp 0x598c9d
mov byte [esp + 0xf8], 0
add esp, 0xe8
ret
mov ecx, eax
mov eax, ebx
call fcn.0046bef0
nop
call fcn.0046aa70
jmp fcn.00598b10