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

Disassembly:
push ebx
push edi
mov edi, ecx
test edi, edi
je 0x59a47c
mov eax, dword [edi + 0x20]
mov dword [edi + 0x18], 0
test eax, eax
jne 0x59a2c9
mov dword [edi + 0x28], eax
mov eax, fcn.0059c830
mov dword [edi + 0x20], fcn.0059c830
cmp dword [edi + 0x24], 0
jne 0x59a2d6
mov dword [edi + 0x24], fcn.004675c0
cmp edx, 0xffffffff
mov ebx, 6
cmovne ebx, edx
cmp ebx, 9
ja 0x59a47c
mov ecx, dword [edi + 0x28]
push esi
push 0x16c4
push 1
push ecx
cmp eax, fcn.0059c830
jne 0x59a304
call fcn.0059c830
jmp 0x59a306
call eax
mov esi, eax
add esp, 0xc
test esi, esi
je 0x59a473
mov dword [edi + 0x1c], esi
push 2
mov dword [esi], edi
mov dword [esi + 4], 0x2a
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0x8000
mov dword [esi + 0x34], 0x7fff
mov dword [esi + 0x50], 0xf
mov dword [esi + 0x4c], 0x8000
mov dword [esi + 0x54], 0x7fff
mov dword [esi + 0x58], 5
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x28]
push 0x8000
push ecx
cmp eax, fcn.0059c830
jne 0x59a37a
call fcn.0059c830
jmp 0x59a37c
call eax
add esp, 0xc
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x2c]
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x28]
push 2
push eax
push ecx
cmp edx, fcn.0059c830
jne 0x59a39e
call fcn.0059c830
jmp 0x59a3a0
call edx
add esp, 0xc
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x4c]
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x28]
push 2
push eax
push ecx
cmp edx, fcn.0059c830
jne 0x59a3c2
call fcn.0059c830
jmp 0x59a3c4
call edx
add esp, 0xc
mov dword [esi + 0x44], eax
mov dword [esi + 0x16c0], 0
mov dword [esi + 0x169c], 0x4000
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x28]
push 4
push 0x4000
push eax
cmp ecx, fcn.0059c830
jne 0x59a3fb
call fcn.0059c830
jmp 0x59a3fd
call ecx
mov edx, dword [esi + 0x169c]
mov ecx, eax
add esp, 0xc
mov dword [esi + 8], ecx
cmp dword [esi + 0x38], 0
lea eax, [edx*4]
mov dword [esi + 0xc], eax
je 0x59a45e
cmp dword [esi + 0x40], 0
je 0x59a45e
cmp dword [esi + 0x44], 0
je 0x59a45e
test ecx, ecx
je 0x59a45e
lea eax, [edx + ecx]
mov dword [esi + 0x84], ebx
mov dword [esi + 0x1698], eax
mov ecx, edi
lea eax, [edx - 1]
mov dword [esi + 0x88], 0
lea eax, [eax + eax*2]
mov byte [esi + 0x24], 8
mov dword [esi + 0x16a4], eax
pop esi
pop edi
pop ebx
jmp 0x59a490
mov dword [esi + 4], 0x29a
mov ecx, edi
mov dword [edi + 0x18], 0x6fdfc8
call fcn.0059b030
pop esi
pop edi
mov eax, 0xfffffffc
pop ebx
ret
pop edi
mov eax, 0xfffffffe
pop ebx
ret
push esi
mov esi, ecx
test esi, esi
je 0x59a651
cmp dword [esi + 0x20], 0
je 0x59a651
cmp dword [esi + 0x24], 0
je 0x59a651
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x59a651
cmp dword [ecx], esi
jne 0x59a651
mov eax, dword [ecx + 4]
cmp eax, 0x2a
je 0x59a4f3
cmp eax, 0x39
je 0x59a4f3
cmp eax, 0x45
je 0x59a4f3
cmp eax, 0x49
je 0x59a4f3
cmp eax, 0x5b
je 0x59a4f3
cmp eax, 0x67
je 0x59a4f3
cmp eax, 0x71
je 0x59a4f3
cmp eax, 0x29a
jne 0x59a651
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 8]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], eax
test edx, edx
jns 0x59a528
neg edx
mov dword [ecx + 0x18], edx
cmp edx, 2
mov eax, 0x2a
push edi
mov edi, 0x39
cmove eax, edi
mov dword [ecx + 4], eax
xor eax, eax
cmp edx, 2
setne al
mov dword [esi + 0x30], eax
lea eax, [ecx + 0x94]
mov dword [ecx + 0xb18], eax
lea eax, [ecx + 0x988]
mov dword [ecx + 0xb24], eax
lea eax, [ecx + 0xa7c]
mov dword [ecx + 0xb30], eax
xor eax, eax
mov dword [ecx + 0x28], 0xfffffffe
mov dword [ecx + 0xb20], 0x6d1c48
mov dword [ecx + 0xb2c], 0x6d49b8
mov dword [ecx + 0xb38], 0x6d49a4
mov word [ecx + 0x16b8], ax
mov dword [ecx + 0x16bc], eax
call fcn.0059d7d0
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0062b6a0
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x6d1baa]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x6d1ba8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x6d1bac]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x6d1bae]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret