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

Disassembly:
mov eax, dword [0x6729d4]
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x20]
cmp eax, ebx
mov esi, ecx
jne 0x59ca46
mov eax, dword [0x6d67a8]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x59d15a
mov eax, dword [edi + 0x4ec]
mov dword [0xd1265c], eax
mov ecx, dword [edi + 0x7c4]
add ecx, eax
mov dword [0xd12630], ecx
mov edx, dword [edi + 0x7d0]
add edx, eax
xor ecx, ecx
mov dword [0xd12654], edx
mov cx, word [edi + 0x7ce]
cmp eax, ebx
mov dword [0xd12640], ecx
je 0x59d15a
cmp word [edi + 0x7c2], bx
mov dword [esp + 0x10], ebx
jbe 0x59d15a
push ebp
mov ecx, dword [esi + 0x30]
call fcn.0059c260
cmp eax, ebx
mov dword [esi + 0x5c], eax
je 0x59d12d
mov edx, dword [edi]
mov ecx, dword [0x6d67a8]
cmp edx, ecx
jne 0x59cac0
push eax
mov ecx, 0x68d9e0
call fcn.00406c40
mov ecx, dword [0xd12630]
mov eax, dword [esi + 0x5c]
mov dl, byte [ecx + 0x59]
mov byte [eax + 0xa8], dl
mov ecx, dword [0xd12630]
mov eax, dword [esi + 0x5c]
mov dl, byte [ecx + 0x5a]
mov byte [eax + 0xa9], dl
mov ecx, dword [0xd12630]
mov eax, dword [esi + 0x5c]
mov dl, byte [ecx + 0x5b]
mov byte [eax + 0xaa], dl
mov ecx, dword [0xd12630]
mov eax, dword [esi + 0x5c]
mov dl, byte [ecx + 0x5c]
mov byte [eax + 0xab], dl
mov eax, dword [0xd12630]
mov edx, dword [eax + 0x14]
lea ecx, [eax + 0x14]
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x5c], edx
mov edx, dword [ecx + 4]
add eax, 0x5c
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x54]
mov dword [edx + 0x9c], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov cl, byte [eax + 0x5e]
mov byte [edx + 0xad], cl
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x90], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x48]
mov dword [edx + 0x90], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x44]
mov dword [edx + 0x8c], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x4c]
mov dword [edx + 0x94], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x3c]
mov dword [edx + 0x84], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x40]
mov dword [edx + 0x88], ecx
mov edx, dword [0xd12630]
mov eax, dword [esi + 0x5c]
lea ecx, [edx + 0x2c]
add eax, 0x74
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 0x38]
mov dword [edx + 0x80], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov ecx, dword [eax + 4]
mov dword [edx + 0x4c], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov cl, byte [eax + 0x58]
mov byte [edx + 0xa0], cl
mov edx, dword [0xd12630]
mov eax, dword [esi + 0x5c]
lea ecx, [edx + 8]
add eax, 0x50
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov cx, word [eax + 0x50]
mov word [edx + 0x98], cx
mov edx, dword [0xd12630]
mov eax, dword [esi + 0x5c]
lea ecx, [edx + 0x20]
add eax, 0x68
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov cl, byte [eax + 0x5d]
mov byte [edx + 0xac], cl
mov eax, dword [0xd12630]
mov edx, dword [esi + 0x5c]
mov cx, word [eax + 0x76]
mov word [edx + 0xb0], cx
mov edx, dword [0xd12630]
mov ecx, dword [esi + 0x5c]
movzx ax, byte [edx + 0x7b]
mov word [ecx + 0xb2], ax
mov edx, dword [esi + 0x5c]
mov eax, dword [edi + 0x7f8]
xor ecx, ecx
mov dword [edx + 0x3c], eax
mov edx, dword [0xd12630]
mov eax, dword [esi + 0x5c]
mov cl, byte [edx + 0x7a]
mov dword [eax + 0x12c], ecx
mov edx, dword [0xd12630]
mov eax, dword [esi + 0x5c]
xor ecx, ecx
mov cl, byte [edx + 0x78]
mov dword [eax + 0x128], ecx
mov ecx, dword [edi + 0x464]
mov edx, dword [esi + 0x5c]
mov eax, dword [ecx]
xor ecx, ecx
mov dword [edx + 0x134], eax
mov edx, dword [0xd12630]
mov eax, dword [esi + 0x5c]
mov cx, word [edx + 0x7c]
mov dword [eax + 0xb4], ecx
mov eax, dword [esi + 0x5c]
test byte [eax + 0xa0], 1
je 0x59cd4c
mov dword [eax + 0xa4], edi
mov ebp, dword [edi + 0x828]
mov eax, dword [esi + 0x5c]
push 0xc
mov ecx, dword [ebp + 4]
add eax, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
call fcn.00613321
add esp, 4
cmp ebp, ebx
mov ecx, ebp
jne 0x59cd1e
mov ecx, eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jne 0x59cd2a
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [ebp + 4], eax
mov edx, dword [eax + 4]
mov dword [edx], eax
add eax, 8
cmp eax, ebx
je 0x59cd44
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov dword [eax], edx
inc dword [edi + 0x82c]
jmp 0x59cd52
mov dword [eax + 0xa4], ebx
mov eax, dword [0xd12630]
cmp byte [eax + 0x5d], bl
je 0x59cdb5
mov eax, dword [edi + 0x7fc]
mov ebp, dword [edi + 0x480]
sub eax, ebp
mov dword [0xd12660], eax
mov ecx, dword [edi + 0x800]
sub ecx, dword [edi + 0x484]
mov edx, ecx
mov dword [0xd12664], ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fsqrt
call fcn.00613380
mov dword [0xd12668], eax
mov edx, dword [esi + 0x5c]
neg eax
mov dword [edx + 0x5c], eax
mov eax, dword [esi + 0x5c]
mov ecx, dword [0xd12668]
mov dword [eax + 0x60], ecx
mov edx, dword [edi + 0x480]
mov eax, dword [esi + 0x5c]
add edx, 0x170
mov dword [eax + 0x30], edx
mov ecx, dword [edi + 0x484]
mov edx, dword [esi + 0x5c]
add ecx, 0x1b2
mov dword [edx + 0x34], ecx
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x10], ebx
mov ecx, dword [0x6d6790]
push ecx
mov ecx, dword [esi + 0x5c]
call fcn.00599750
mov edx, dword [esi + 0x5c]
lea ecx, [esi + 0x18]
push edx
call fcn.00598040
mov eax, dword [esi + 0x5c]
mov dword [eax + 0x120], ebx
mov ecx, dword [esi + 0x5c]
xor eax, eax
mov dword [ecx + 0x11c], ebx
mov edx, dword [esi + 0x5c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x59ce2a
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 0x11c], 1
mov edx, dword [0xd12630]
movsx ebp, byte [edx + eax + 0x62]
cmp ebp, ebx
jl 0x59d10b
xor eax, eax
mov ax, word [edi + 0x7ce]
cmp ebp, eax
jge 0x59d10b
mov ecx, dword [esi + 0x30]
call fcn.0059c260
cmp eax, ebx
je 0x59d10b
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx + 0x120]
inc edx
mov dword [ecx + 0x120], edx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x124], ebx
mov dword [eax + 0x120], ebx
mov dword [ecx + 0x124], eax
mov dword [eax + 0x11c], ebx
mov edx, dword [0xd12654]
mov dword [esp + 0x24], eax
shl ebp, 7
mov ecx, ebp
mov dl, byte [edx + ecx + 0x59]
mov byte [eax + 0xa8], dl
mov edx, dword [0xd12654]
mov dl, byte [edx + ecx + 0x5a]
mov byte [eax + 0xa9], dl
mov edx, dword [0xd12654]
mov dl, byte [edx + ecx + 0x5b]
mov byte [eax + 0xaa], dl
mov edx, dword [0xd12654]
mov dl, byte [edx + ecx + 0x5c]
mov byte [eax + 0xab], dl
mov edx, dword [0xd12654]
mov ebp, dword [edx + ecx + 0x14]
lea edx, [edx + ecx + 0x14]
mov dword [eax + 0x5c], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 0x60], ebp
mov edx, dword [edx + 8]
mov dword [eax + 0x64], edx
mov edx, dword [0xd12654]
mov edx, dword [edx + ecx + 0x54]
mov dword [eax + 0x9c], edx
mov edx, dword [0xd12654]
mov dl, byte [edx + ecx + 0x5e]
mov byte [eax + 0xad], dl
mov edx, dword [0xd12654]
mov edx, dword [edx + ecx + 0x48]
mov dword [eax + 0x90], edx
mov edx, dword [0xd12654]
mov edx, dword [edx + ecx + 0x48]
mov dword [eax + 0x90], edx
mov edx, dword [0xd12654]
mov edx, dword [edx + ecx + 0x44]
mov dword [eax + 0x8c], edx
mov edx, dword [0xd12654]
mov edx, dword [edx + ecx + 0x4c]
mov dword [eax + 0x94], edx
mov edx, dword [0xd12654]
mov edx, dword [edx + ecx + 0x3c]
mov dword [eax + 0x84], edx
mov edx, dword [0xd12654]
mov edx, dword [edx + ecx + 0x40]
mov dword [eax + 0x88], edx
mov edx, dword [0xd12654]
mov ebp, dword [edx + ecx + 0x2c]
lea edx, [edx + ecx + 0x2c]
mov dword [eax + 0x74], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 0x78], ebp
mov edx, dword [edx + 8]
mov dword [eax + 0x7c], edx
mov edx, dword [0xd12654]
mov edx, dword [edx + ecx + 0x38]
mov dword [eax + 0x80], edx
mov edx, dword [0xd12654]
mov edx, dword [edx + ecx + 4]
mov dword [eax + 0x4c], edx
mov edx, dword [0xd12654]
mov dl, byte [edx + ecx + 0x58]
mov byte [eax + 0xa0], dl
mov edx, dword [0xd12654]
mov ebp, dword [edx + ecx + 8]
lea edx, [edx + ecx + 8]
mov dword [eax + 0x50], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 0x54], ebp
mov edx, dword [edx + 8]
mov dword [eax + 0x58], edx
mov edx, dword [0xd12654]
mov dx, word [edx + ecx + 0x50]
mov word [eax + 0x98], dx
mov edx, dword [0xd12654]
mov ebp, dword [edx + ecx + 0x20]
lea edx, [edx + ecx + 0x20]
mov dword [eax + 0x68], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 0x6c], ebp
mov edx, dword [edx + 8]
mov dword [eax + 0x70], edx
mov edx, dword [0xd12654]
mov dl, byte [edx + ecx + 0x5d]
mov byte [eax + 0xac], dl
mov edx, dword [0xd12654]
mov dx, word [edx + ecx + 0x76]
mov word [eax + 0xb0], dx
mov edx, dword [0xd12654]
movzx dx, byte [edx + ecx + 0x7b]
mov word [eax + 0xb2], dx
mov dword [eax + 0x3c], 0xe1
mov ebp, dword [0xd12654]
xor edx, edx
mov dl, byte [ecx + ebp + 0x7a]
mov dword [eax + 0x12c], edx
mov ebp, dword [0xd12654]
xor edx, edx
mov dl, byte [ecx + ebp + 0x78]
mov dword [eax + 0x128], edx
mov ecx, dword [edi + 0x480]
add ecx, 0x170
mov dword [eax + 0x30], ecx
mov edx, dword [edi + 0x484]
add edx, 0x1b2
mov dword [eax + 0x10], ebx
mov dword [eax + 0x34], edx
mov ecx, dword [0xd12630]
mov edx, dword [esi + 0x5c]
xor eax, eax
mov ax, word [ecx + 0x7c]
mov dword [edx + 0xb4], eax
mov eax, dword [esi + 0x5c]
test byte [eax + 0xa0], 1
je 0x59d105
mov dword [eax + 0xa4], edi
mov eax, dword [esi + 0x5c]
mov ebp, dword [edi + 0x828]
add eax, 0xc
mov dword [esp + 0x1c], eax
push 0xc
mov eax, dword [ebp + 4]
mov dword [esp + 0x1c], eax
call fcn.00613321
add esp, 4
cmp ebp, ebx
mov ecx, ebp
jne 0x59d0d7
mov ecx, eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x59d0e3
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [ebp + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
cmp eax, ebx
je 0x59d0fd
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
mov dword [eax], ecx
inc dword [edi + 0x82c]
jmp 0x59d10b
mov dword [eax + 0xa4], ebx
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x14
mov dword [esp + 0x10], eax
jl 0x59ce19
mov eax, dword [esp + 0x24]
mov dword [eax + 0x120], ebx
mov dword [eax + 0x124], ebx
mov ebp, dword [0xd12630]
mov eax, dword [esp + 0x14]
add ebp, 0x80
xor edx, edx
mov dword [0xd12630], ebp
mov dx, word [edi + 0x7c2]
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x59ca96
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4