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

Disassembly:
sub esp, 0xd0
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push 0x3e9
mov dword [esp + 0x3c], 0x64
mov dword [esp + 0x24], ebp
call fcn.0059dbf9
push ebp
push ebp
mov ebx, dword [esp + 0xec]
mov dword [esp + 0xa0], eax
lea edi, [ebx + 0x14]
mov ecx, edi
call fcn.00597729
cmp eax, ebp
je 0x59a580
cmp dword [esp + 0xe8], ebp
jne 0x59a073
lea esi, [eax + 0x18]
push esi
call fcn.00570a49
add esi, eax
push esi
call fcn.00570a49
add esi, eax
add esp, 8
mov esi, dword [esi]
cmp esi, ebp
je 0x59a073
mov eax, dword [esi + 0x1c]
push eax
call dword [0x100c3718]
test eax, eax
je 0x59a073
cmp dword [esi + 0x1b4], ebp
je 0x59a086
push ebp
push ebp
mov ecx, esi
call fcn.005de2e9
cmp dword [esp + 0xf0], 1
jne 0x59a0d1
mov dword [esp + 0xf4], ebp
jmp 0x59a0eb
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x100c3624]
test eax, eax
je 0x59a0af
push 9
mov ecx, esi
call fcn.005f7a45
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret 0x14
mov edx, dword [esi + 0x1c]
push edx
call dword [0x100c3628]
push eax
call fcn.005f5089
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret 0x14
mov eax, dword [esp + 0xf4]
cmp eax, ebp
je 0x59a0eb
push eax
call dword [0x100c3718]
test eax, eax
je 0x59a580
push ebp
push ebp
push 0x7d9
call fcn.0059dbf9
lea ecx, [ebx + 0x34]
push edi
mov dword [esp + 0x20], ecx
call fcn.005976b9
push ebx
mov ecx, dword [esp + 0x9c]
call fcn.00597da9
cmp eax, ebp
mov dword [esp + 0x48], eax
je 0x59a580
lea eax, [esp + 0xb0]
mov ecx, edi
push eax
mov dword [esp + 0xb0], ebp
mov dword [esp + 0x14], ebp
call fcn.00598459
cmp eax, ebp
mov dword [esp + 0x24], ebp
jle 0x59a166
mov edx, dword [esp + 0xb0]
lea ecx, [esp + 0x24]
push ebp
push ecx
push ebp
push 0xffffffffffffffff
push eax
push ebp
push edx
mov ecx, edi
call fcn.00597729
push eax
call fcn.005c3c99
add esp, 0x18
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x50]
call fcn.0056ff89
mov esi, 0x100c3c34
lea ecx, [esp + 0x78]
mov dword [esp + 0x50], esi
call fcn.0056ff89
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], esi
call fcn.0056ff89
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], esi
call fcn.0056ff89
mov ebx, dword [ebx + 0x18]
cmp ebx, ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x14], ebx
jle 0x59a46d
mov eax, dword [esp + 0x4c]
mov edi, ebx
sub edi, eax
mov eax, dword [esp + 0xe4]
neg edi
sbb edi, edi
lea esi, [eax + 0x14]
and edi, ebx
push 0
push edi
mov ecx, esi
call fcn.00597729
mov ebp, eax
test ebp, ebp
je 0x59a46d
push edi
mov ecx, esi
call fcn.00598019
cmp eax, 1
jne 0x59a1f1
dec ebx
mov dword [esp + 0x14], ebx
jmp 0x59a465
mov ecx, dword [ebp]
push 0
push ecx
push 0x3ea
call fcn.0059dbf9
mov ebx, eax
test ebx, ebx
je 0x59a58f
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x59a58f
push 1
call eax
test eax, eax
mov dword [esp + 0x2c], eax
je 0x59a58f
lea esi, [ebp + 0x18]
push esi
call fcn.00570a49
add esi, eax
push esi
call fcn.00570a49
add esp, 8
add esi, eax
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0x8c]
push edx
push ebp
lea ebp, [eax + 0x14]
mov dword [esp + 0x30], esi
mov ecx, ebp
add esi, 4
call fcn.00598039
push edi
mov ecx, ebp
mov dword [esp + 0xa0], eax
call fcn.00597779
mov ecx, dword [ebx + 0x14]
shr ecx, 8
and ecx, 1
mov dword [esp + 0x94], eax
push ecx
lea ecx, [esp + 0x68]
call fcn.00570289
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x90], edx
mov edx, dword [esi + 0xc]
add esi, 0x18
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], ecx
mov eax, dword [esi]
mov dword [esp + 0xa4], edx
xor ebp, ebp
mov ecx, dword [esi + eax*4 + 4]
lea eax, [esi + eax*4 + 4]
lea esi, [eax + ecx + 4]
push esi
call fcn.00570a49
mov ecx, dword [ebx + 0x14]
lea esi, [esi + eax + 4]
add esp, 4
mov eax, dword [esi]
test ch, 0x80
mov dword [esp + 0x20], eax
je 0x59a2e7
push ebp
lea ecx, [esp + 0x38]
call fcn.00570259
jmp 0x59a31b
mov ecx, dword [esp + 0xe8]
test ecx, ecx
je 0x59a303
test edi, edi
jne 0x59a303
push 1
lea ecx, [esp + 0x38]
call fcn.00570259
jmp 0x59a31b
and al, 1
lea ecx, [esp + 0x34]
push eax
call fcn.00570259
test byte [esp + 0x20], 2
je 0x59a31b
mov ebp, 0x8000000
test byte [esp + 0x20], 4
je 0x59a328
or ebp, 0x10000
test edi, edi
jne 0x59a3da
mov edx, dword [esp + 0xf0]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xa4]
push edi
mov ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x9c]
mov dword [0x100ed420], edx
mov edx, dword [esp + 0xb0]
push edi
push eax
mov eax, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0x10c]
push eax
mov eax, dword [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0xbc]
push ebx
push 0
push edx
push ebp
push eax
push ecx
call dword [esp + 0x64]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
mov dword [0x100ed420], ebp
mov dword [esp + 0x18], esi
je 0x59a4fb
mov eax, dword [esi + 0x1c]
cmp eax, ebp
mov dword [esp + 0xac], eax
je 0x59a4fb
push eax
call dword [0x100c3718]
test eax, eax
je 0x59a4fb
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x10], ebp
mov dword [esi + 0xd8], edx
jmp 0x59a438
mov edi, dword [esp + 0x94]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
push 0
mov ebx, dword [esp + 0x34]
push 0
push edi
push eax
mov eax, dword [esp + 0xb0]
push ecx
mov ecx, dword [esp + 0xa4]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
mov eax, dword [edx + 0x1c]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xbc]
push 0
push ebx
push eax
push ebp
push ecx
push edx
call dword [esp + 0x64]
add ebx, 0xa
mov esi, eax
mov dword [esp + 0x30], ebx
test esi, esi
je 0x59a520
mov eax, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x54]
mov dword [eax], esi
call fcn.00570289
push esi
lea ecx, [esp + 0x7c]
call fcn.00570289
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
mov ebx, eax
test ebx, ebx
jg 0x59a1ae
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x6c]
neg eax
sbb eax, eax
mov ecx, dword [esp + 0x58]
and eax, esi
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
mov edi, eax
mov edx, dword [esp + 0x3c]
neg edi
sbb edi, edi
and edi, ecx
mov ecx, dword [esp + 0x88]
neg ecx
sbb ecx, ecx
and ecx, ebx
mov ebx, 1
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x44]
neg ecx
sbb ecx, ecx
and ecx, edx
shr eax, 2
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xe4]
push 0
push ebx
lea esi, [eax + 0x14]
mov ecx, esi
call fcn.00597729
mov ebp, eax
test ebp, ebp
je 0x59a6a8
push ebx
mov ecx, esi
call fcn.00598019
cmp eax, 1
jne 0x59a5b8
inc ebx
jmp 0x59a4c5
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x59a50a
push eax
call dword [0x100c3640]
cmp ebx, ebp
je 0x59a515
push ebx
call dword [0x100c362c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
call dword [edx + 8]
jmp 0x59a547
mov eax, dword [esp + 0x24]
test eax, eax
je 0x59a52f
push eax
call dword [0x100c3640]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x59a53e
push eax
call dword [0x100c362c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, 0x100c3c18
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.00570189
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], esi
call fcn.00570189
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], esi
call fcn.00570189
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], esi
call fcn.00570189
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xd0
ret 0x14
mov eax, dword [esp + 0x24]
test eax, eax
je 0x59a59e
push eax
call dword [0x100c3640]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x59a5ad
push eax
call dword [0x100c362c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
call dword [edx + 8]
jmp 0x59a547
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xe4]
push ecx
lea ecx, [edx + 0x14]
call fcn.00597779
push eax
mov eax, dword [esp + 0x18]
push eax
push edi
call fcn.00570ad9
mov ecx, dword [esp + 0x2c]
mov ebx, eax
lea esi, [ebp + 0x18]
mov edx, dword [ecx + ebx*4]
push esi
mov dword [esp + 0x38], edx
call fcn.00570a49
add esi, eax
push esi
call fcn.00570a49
lea esi, [eax + esi + 0x18]
add esp, 0x14
mov eax, dword [esi]
test eax, eax
je 0x59a61b
push eax
mov eax, dword [esp + 0x18]
push eax
push edi
call fcn.00570ad9
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [ecx + eax*4]
jmp 0x59a61f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x59a626
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [edx + 0x1c]
push eax
call dword [0x100c3670]
push eax
call fcn.005f5089
mov ecx, dword [esp + 0x4c]
cmp dword [ecx + ebx*4], 0
je 0x59a698
mov eax, dword [esi + 4]
add esi, 4
add esi, 4
test eax, eax
jle 0x59a698
cmp dword [esi], 0
je 0x59a66f
dec eax
add esi, 4
test eax, eax
jg 0x59a652
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov ebx, eax
jmp 0x59a4c9
test eax, eax
jle 0x59a698
mov ebx, dword [esp + 0x2c]
mov ebp, eax
mov eax, dword [esi]
test eax, eax
je 0x59a692
mov edx, dword [esp + 0x14]
push eax
push edx
push edi
call fcn.00570ad9
add esp, 0xc
mov byte [eax + ebx], 0
add esi, 4
dec ebp
jne 0x59a679
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov ebx, eax
jmp 0x59a4c9
mov ebp, 1
xor ebx, ebx
mov dword [esp + 0x10], ebp
push ebx
push ebp
mov ecx, esi
call fcn.00597729
mov edi, eax
cmp edi, ebx
je 0x59a7b5
push ebp
mov ecx, esi
call fcn.00598019
cmp eax, 1
jne 0x59a6da
inc ebp
mov dword [esp + 0x10], ebp
jmp 0x59a6b3
add edi, 0x18
push edi
call fcn.00570a49
add edi, eax
push edi
call fcn.00570a49
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + edi]
mov ebp, dword [eax + edi + 0x18]
add eax, edi
mov eax, edx
add esp, 8
cmp eax, 2
mov dword [esp + 0x30], ecx
lea ebx, [edx - 1]
jl 0x59a742
push 0
push ebx
mov ecx, esi
call fcn.00597729
push ebx
mov ecx, esi
mov edi, eax
call fcn.00598019
test eax, eax
jne 0x59a73c
add edi, 0x18
push edi
call fcn.00570a49
add edi, eax
push edi
call fcn.00570a49
add edi, eax
add esp, 8
cmp dword [edi + 0x18], ebp
je 0x59a76e
dec ebx
cmp ebx, 1
jge 0x59a709
mov eax, dword [esp + 0x30]
push 0x13
push 0
push 0
mov ecx, dword [eax + 0x1c]
push 0
push 0
push 0
push ecx
call dword [0x100c3630]
mov eax, dword [esp + 0x10]
inc eax
xor ebx, ebx
mov dword [esp + 0x10], eax
mov ebp, eax
jmp 0x59a6b3
cmp ebx, 1
jl 0x59a742
push 0
push ebx
mov ecx, esi
call fcn.00597729
test eax, eax
je 0x59a75c
lea edi, [eax + 0x18]
push edi
call fcn.00570a49
add edi, eax
push edi
call fcn.00570a49
add edi, eax
add esp, 8
mov edi, dword [edi]
test edi, edi
je 0x59a75c
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 0x1c]
push 0x13
push 0
mov edx, dword [ecx + 0x1c]
push 0
push 0
push 0
push eax
push edx
jmp 0x59a756
xor ebp, ebp
mov eax, ebp
inc ebp
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x18], ebp
call fcn.00597729
mov edi, eax
cmp edi, ebx
je 0x59a83e
lea edx, [ebp - 1]
mov ecx, esi
push edx
call fcn.00598019
cmp eax, 1
je 0x59a7b7
lea ebx, [edi + 0x18]
mov edi, ebx
push edi
call fcn.00570a49
add edi, eax
push edi
call fcn.00570a49
mov ecx, dword [edi + eax + 0x1c]
lea eax, [edi + eax + 0x1c]
mov edi, ebx
push edi
lea ebp, [eax + ecx*4 + 4]
call fcn.00570a49
add edi, eax
push edi
call fcn.00570a49
lea edi, [eax + edi + 0x14]
mov eax, dword [ebp]
add esp, 0x10
test eax, eax
jle 0x59a831
add ebp, 4
push eax
push ebp
call fcn.0055bd39
mov ebp, dword [esp + 0x18]
add esp, 8
mov dword [edi], eax
xor ebx, ebx
jmp 0x59a7b7
mov ebp, dword [esp + 0x10]
xor ebx, ebx
mov dword [edi], ebx
jmp 0x59a7b7
mov edx, dword [esp + 0xe4]
mov ebp, dword [edx + 0x18]
dec ebp
js 0x59a8bc
lea eax, [ebp + 1]
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x1c]
mov eax, ebp
dec ebp
dec edi
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x24], edi
call fcn.00597729
mov edi, eax
cmp edi, ebx
je 0x59a8bc
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00598019
test eax, eax
jne 0x59a8b8
add edi, 0x18
push edi
call fcn.00570a49
add edi, eax
push edi
call fcn.00570a49
add edi, eax
add esp, 8
mov edi, dword [edi]
cmp edi, ebx
je 0x59a8b8
mov edx, dword [edi + 0x1c]
push edx
call dword [0x100c3718]
test eax, eax
je 0x59a8b8
mov eax, dword [edi + 0x1c]
push ebx
push ebx
push 0x806f
push eax
call dword [0x100c3748]
cmp ebp, ebx
jge 0x59a852
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push 0x8004
mov edx, dword [ecx + 0x1c]
push edx
call dword [0x100c3748]
mov esi, 1
cmp dword [esp + 0x14], esi
jle 0x59a908
mov eax, dword [esp + 0x20]
lea edi, [eax + 4]
mov ecx, dword [esp + 0x2c]
mov dl, byte [esi + ecx]
mov ecx, dword [edi]
dec dl
neg dl
sbb edx, edx
and edx, 0xfffffff8
add edx, 8
push edx
call fcn.005f7a45
inc esi
add edi, 4
cmp esi, dword [esp + 0x14]
jl 0x59a8e3
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x1dc]
cmp eax, ebx
je 0x59a91d
push eax
call dword [0x100c3640]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push ebx
push ebx
push 0x7da
mov dword [edx + 0x1dc], ecx
call fcn.0059dbf9
push ebx
mov eax, dword [esp + 0xe8]
lea ecx, [eax + 0x14]
call fcn.00597779
lea ecx, [esp + 0xb4]
push ebx
mov edi, dword [esp + 0x4c]
mov esi, eax
push ecx
push 0x7d8
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
call fcn.0059dbf9
mov ebp, dword [esp + 0xac]
push ebp
call dword [0x100c3718]
test eax, eax
je 0x59ab52
lea edx, [esp + 0xb4]
push ebx
push edx
push 0x7d8
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], 3
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
call fcn.0059dbf9
push ebp
call dword [0x100c3718]
test eax, eax
je 0x59ab52
lea eax, [esp + 0xb4]
push ebx
push eax
push 0x7d8
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], 4
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
call fcn.0059dbf9
push ebp
call dword [0x100c3718]
test eax, eax
je 0x59ab52
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
neg eax
sbb eax, eax
and eax, edx
cmp byte [eax], 0
je 0x59aa6e
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe4]
push ecx
push edx
push edi
mov ecx, 0x100ecf98
call fcn.00599ed9
push ebp
call dword [0x100c3718]
test eax, eax
je 0x59ab44
mov ecx, dword [esp + 0xf0]
mov eax, 1
cmp ecx, eax
jne 0x59ab44
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx + 0x1bc], eax
mov ecx, dword [esp + 0x98]
lea edx, [esp + 0x28]
mov eax, ebp
push edx
push eax
inc ebp
call fcn.00597df9
test eax, eax
je 0x59ab44
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xe4]
cmp eax, ecx
je 0x59aa9d
push ebx
push ebx
lea ecx, [eax + 0x14]
call fcn.00597729
mov edi, eax
add edi, 0x18
push edi
call fcn.00570a49
add edi, eax
push edi
call fcn.00570a49
add edi, eax
add esp, 8
mov edi, dword [edi]
cmp edi, ebx
je 0x59aa9d
mov eax, dword [edi + 0x1c]
push eax
call dword [0x100c3718]
test eax, eax
je 0x59aa9d
mov ecx, dword [edi + 0x1c]
push ecx
call dword [0x100c3744]
push eax
call fcn.005f5089
test eax, eax
jne 0x59aa9d
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x1c]
push eax
lea esi, [edx + 0x1c0]
mov ecx, esi
call fcn.00570289
mov ecx, edi
call fcn.005f7a6c
push eax
mov ecx, esi
call fcn.00570289
push ebx
mov ecx, edi
call fcn.005f7a87
jmp 0x59aa9d
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x1b8], 1
mov esi, 0x100c3c18
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.00570189
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], esi
call fcn.00570189
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], esi
call fcn.00570189
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], esi
call fcn.00570189
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd0
ret 0x14