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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x64]
push edi
cmp ecx, 0x12
je 0x59cf6b
cmp ecx, 0x18
je 0x59ccd0
cmp ecx, 0x24
jne 0x59d2f1
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
jle 0x59d2f1
jmp 0x59c910
mov eax, dword [esp + 0x60]
sar ecx, 0x10
lea ecx, [eax + ecx*4]
mov eax, dword [ecx + 0x48]
mov esi, dword [ecx + 0x44]
lea edi, [eax + esi]
mov eax, dword [ecx + 0x4c]
mov esi, dword [ecx + 0x40]
lea ebx, [eax + esi]
mov eax, dword [ecx + 0x50]
mov esi, dword [ecx + 0x3c]
lea ebp, [eax + esi]
mov esi, dword [ecx + 0x38]
mov eax, dword [ecx + 0x54]
add eax, esi
mov esi, dword [ecx + 0x34]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x58]
add eax, esi
mov esi, dword [ecx + 0x30]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x5c]
add eax, esi
mov esi, dword [ecx + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x60]
add eax, esi
mov esi, dword [ecx + 0x28]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x64]
add eax, esi
mov esi, dword [ecx + 0x24]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0x68]
add eax, esi
mov esi, dword [ecx + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x6c]
add eax, esi
mov esi, dword [ecx + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x70]
add eax, esi
mov esi, dword [ecx + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x74]
add eax, esi
mov esi, dword [ecx + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x78]
add eax, esi
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x7c]
add eax, esi
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x80]
add eax, esi
mov esi, dword [ecx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x84]
add eax, esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x88]
add eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x8c]
mov ecx, dword [ecx]
lea esi, [eax + ecx]
movsx eax, word [edx + 0x22]
mov ecx, edi
and ecx, 0xffff
imul ecx, eax
movsx eax, word [edx]
mov dword [esp + 0x50], esi
and esi, 0xffff
imul esi, eax
sar ecx, 0x10
sar esi, 0x10
add ecx, esi
movsx eax, word [edx + 2]
mov esi, dword [esp + 0x14]
and esi, 0xffff
imul esi, eax
sar esi, 0x10
add ecx, esi
movsx eax, word [edx + 4]
mov esi, dword [esp + 0x18]
and esi, 0xffff
imul esi, eax
sar esi, 0x10
add ecx, esi
movsx eax, word [edx + 6]
mov esi, dword [esp + 0x1c]
and esi, 0xffff
imul esi, eax
sar esi, 0x10
add ecx, esi
movsx eax, word [edx + 8]
mov esi, dword [esp + 0x20]
and esi, 0xffff
imul esi, eax
sar esi, 0x10
add ecx, esi
movsx eax, word [edx + 0xa]
mov esi, dword [esp + 0x24]
and esi, 0xffff
imul esi, eax
sar esi, 0x10
add ecx, esi
movsx eax, word [edx + 0xc]
mov esi, dword [esp + 0x28]
and esi, 0xffff
imul esi, eax
sar esi, 0x10
add ecx, esi
movsx eax, word [edx + 0xe]
mov esi, dword [esp + 0x2c]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 0x10]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x30]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 0x12]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x34]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 0x14]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x38]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 0x16]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x3c]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 0x18]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x40]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 0x1a]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x44]
and esi, 0xffff
imul esi, eax
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x48]
and esi, 0xffff
movsx eax, word [edx + 0x1c]
imul esi, eax
movsx eax, word [edx + 0x1e]
sar esi, 0x10
add ecx, esi
mov esi, ebp
and esi, 0xffff
imul esi, eax
sar esi, 0x10
add ecx, esi
movsx esi, word [edx + 0x20]
mov eax, ebx
and eax, 0xffff
imul eax, esi
sar eax, 0x10
add ecx, eax
movsx eax, word [edx + 0x22]
sar edi, 0x10
imul edi, eax
mov eax, dword [esp + 0x50]
sar eax, 0x10
add ecx, edi
movsx edi, word [edx]
imul eax, edi
add ecx, eax
movsx edi, word [edx + 2]
mov eax, dword [esp + 0x14]
sar eax, 0x10
imul eax, edi
add ecx, eax
movsx edi, word [edx + 4]
mov eax, dword [esp + 0x18]
sar eax, 0x10
imul eax, edi
add ecx, eax
movsx edi, word [edx + 6]
mov eax, dword [esp + 0x1c]
sar eax, 0x10
imul eax, edi
add ecx, eax
movsx edi, word [edx + 8]
mov eax, dword [esp + 0x20]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0xa]
add ecx, eax
mov eax, dword [esp + 0x24]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0xc]
add ecx, eax
mov eax, dword [esp + 0x28]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0xe]
add ecx, eax
mov eax, dword [esp + 0x2c]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0x10]
add ecx, eax
mov eax, dword [esp + 0x30]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0x12]
add ecx, eax
mov eax, dword [esp + 0x34]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0x14]
add ecx, eax
mov eax, dword [esp + 0x38]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0x16]
add ecx, eax
mov eax, dword [esp + 0x3c]
sar eax, 0x10
imul eax, edi
add ecx, eax
mov eax, dword [esp + 0x40]
movsx edi, word [edx + 0x18]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0x1a]
add ecx, eax
mov eax, dword [esp + 0x44]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x48]
sar eax, 0x10
imul eax, edi
add ecx, eax
movsx eax, word [edx + 0x1e]
sar ebp, 0x10
imul ebp, eax
sar ebx, 0x10
imul ebx, esi
add ecx, ebp
add ecx, ebx
sar ecx, 5
inc ecx
sar ecx, 1
cmp ecx, 0x7fff
jle 0x59cc97
mov ecx, 0x7fff
jmp 0x59cca4
cmp ecx, 0xffff8000
jge 0x59cca4
mov ecx, 0xffff8000
mov eax, dword [esp + 0x5c]
mov word [eax], cx
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x6c]
add eax, 2
cmp ecx, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x10], ecx
jl 0x59c910
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
jle 0x59d2f1
mov edi, edi
mov eax, dword [esp + 0x60]
sar ecx, 0x10
lea ecx, [eax + ecx*4]
mov eax, dword [ecx + 0x30]
mov esi, dword [ecx + 0x2c]
lea edi, [eax + esi]
mov eax, dword [ecx + 0x34]
mov esi, dword [ecx + 0x28]
lea ebx, [eax + esi]
mov eax, dword [ecx + 0x38]
mov esi, dword [ecx + 0x24]
lea ebp, [eax + esi]
mov esi, dword [ecx + 0x20]
mov eax, dword [ecx + 0x3c]
add eax, esi
mov esi, dword [ecx + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x40]
add eax, esi
mov esi, dword [ecx + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x44]
add eax, esi
mov esi, dword [ecx + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x48]
add eax, esi
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0x4c]
add eax, esi
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x50]
add eax, esi
mov esi, dword [ecx + 8]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x54]
add eax, esi
mov esi, dword [ecx + 4]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x58]
add eax, esi
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x5c]
mov ecx, dword [ecx]
add eax, ecx
mov dword [esp + 0x2c], eax
movsx eax, word [edx + 0x14]
mov ecx, ebx
and ecx, 0xffff
imul ecx, eax
movsx eax, word [edx + 0x16]
mov esi, edi
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 2]
sar esi, 0x10
sar ecx, 0x10
add ecx, esi
mov esi, dword [esp + 0x48]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 4]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x44]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 6]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x40]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 8]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x3c]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 0xa]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x38]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 0xc]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x34]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 0xe]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x30]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x2c]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 0x10]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x28]
and esi, 0xffff
imul esi, eax
sar esi, 0x10
add ecx, esi
movsx esi, word [edx + 0x12]
mov eax, ebp
and eax, 0xffff
imul eax, esi
sar eax, 0x10
add ecx, eax
movsx eax, word [edx + 0x14]
sar edi, 0x10
sar ebx, 0x10
imul ebx, eax
movsx eax, word [edx + 0x16]
imul edi, eax
mov eax, dword [esp + 0x48]
sar eax, 0x10
add ecx, ebx
add ecx, edi
movsx edi, word [edx + 2]
imul eax, edi
movsx edi, word [edx + 4]
add ecx, eax
mov eax, dword [esp + 0x44]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 6]
add ecx, eax
mov eax, dword [esp + 0x40]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 8]
add ecx, eax
mov eax, dword [esp + 0x3c]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0xa]
add ecx, eax
mov eax, dword [esp + 0x38]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0xc]
add ecx, eax
mov eax, dword [esp + 0x34]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0xe]
add ecx, eax
mov eax, dword [esp + 0x30]
sar eax, 0x10
imul eax, edi
add ecx, eax
movsx edi, word [edx]
mov eax, dword [esp + 0x2c]
sar eax, 0x10
imul eax, edi
movsx edi, word [edx + 0x10]
add ecx, eax
mov eax, dword [esp + 0x28]
sar eax, 0x10
imul eax, edi
sar ebp, 0x10
imul ebp, esi
add ecx, eax
add ecx, ebp
sar ecx, 5
inc ecx
sar ecx, 1
cmp ecx, 0x7fff
jle 0x59cf32
mov ecx, 0x7fff
jmp 0x59cf3f
cmp ecx, 0xffff8000
jge 0x59cf3f
mov ecx, 0xffff8000
mov eax, dword [esp + 0x5c]
mov word [eax], cx
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x6c]
add eax, 2
cmp ecx, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x10], ecx
jl 0x59cce0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
xor edi, edi
mov dword [esp + 0x10], edi
test esi, esi
jle 0x59d2f1
lea esp, [esp]
mov eax, dword [esp + 0x60]
mov ecx, edi
sar ecx, 0x10
lea esi, [eax + ecx*4]
movsx eax, word [esp + 0x64]
and edi, 0xffff
imul edi, eax
sar edi, 0x10
lea ecx, [edi + edi*8]
movsx eax, word [edx + ecx*2 + 0x10]
mov dword [esp + 0x4c], eax
movsx eax, word [edx + ecx*2 + 0xe]
mov dword [esp + 0x18], eax
movsx eax, word [edx + ecx*2 + 0xc]
lea ecx, [edx + ecx*2]
mov dword [esp + 0x20], eax
movsx eax, word [ecx + 0xa]
movsx ebp, word [ecx + 2]
mov dword [esp + 0x28], eax
movsx eax, word [ecx + 8]
mov dword [esp + 0x30], eax
movsx eax, word [ecx + 6]
mov dword [esp + 0x38], eax
movsx eax, word [ecx + 4]
movsx ecx, word [ecx]
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 4]
and ecx, 0xffff
imul ecx, ebp
mov dword [esp + 0x44], ebp
mov ebp, dword [esi + 8]
and ebp, 0xffff
imul ebp, eax
mov eax, dword [esi + 0xc]
and eax, 0xffff
imul eax, dword [esp + 0x38]
sar eax, 0x10
sar ecx, 0x10
sar ebp, 0x10
add ecx, ebp
add ecx, eax
mov eax, dword [esi + 0x10]
and eax, 0xffff
imul eax, dword [esp + 0x30]
sar eax, 0x10
add ecx, eax
mov eax, dword [esi + 0x14]
and eax, 0xffff
imul eax, dword [esp + 0x28]
sar eax, 0x10
add ecx, eax
mov eax, dword [esi + 0x18]
and eax, 0xffff
imul eax, dword [esp + 0x20]
sar eax, 0x10
add ecx, eax
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi + 0x20]
and eax, 0xffff
imul eax, dword [esp + 0x18]
sar eax, 0x10
add ecx, eax
mov eax, ebx
and eax, 0xffff
imul eax, dword [esp + 0x4c]
sar eax, 0x10
add ecx, eax
mov eax, dword [esi]
and eax, 0xffff
imul eax, dword [esp + 0x14]
sar eax, 0x10
add ecx, eax
mov eax, dword [esi + 4]
sar eax, 0x10
imul eax, dword [esp + 0x44]
add ecx, eax
mov eax, dword [esi + 8]
sar eax, 0x10
imul eax, dword [esp + 0x54]
add ecx, eax
mov eax, dword [esi + 0xc]
sar eax, 0x10
imul eax, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esi + 0x10]
sar eax, 0x10
imul eax, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esi + 0x14]
sar eax, 0x10
imul eax, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esi + 0x18]
sar eax, 0x10
imul eax, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esi + 0x1c]
sar eax, 0x10
imul eax, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esi]
sar eax, 0x10
imul eax, dword [esp + 0x14]
sar ebx, 0x10
imul ebx, dword [esp + 0x4c]
add ecx, ebx
add ecx, eax
mov eax, dword [esp + 0x64]
sub eax, edi
dec eax
lea eax, [eax + eax*8]
movsx ebp, word [edx + eax*2 + 8]
lea edi, [edx + eax*2]
mov dword [esp + 0x20], ebp
mov ebp, dword [esi + 0x38]
mov dword [esp + 0x28], ebp
movsx ebp, word [edi + 6]
mov dword [esp + 0x24], ebp
mov ebp, dword [esi + 0x3c]
mov dword [esp + 0x34], ebp
movsx ebp, word [edi + 4]
mov ebx, dword [esi + 0x30]
mov dword [esp + 0x30], ebp
mov ebp, dword [esi + 0x40]
mov dword [esp + 0x3c], ebp
movsx ebp, word [edi + 2]
movsx eax, word [edi + 0xa]
mov dword [esp + 0x38], ebp
movsx ebp, word [edi + 0xc]
mov dword [esp + 0x40], ebp
mov ebp, dword [esi + 0x2c]
mov dword [esp + 0x44], ebp
movsx ebp, word [edi + 0xe]
mov dword [esp + 0x48], ebp
mov ebp, dword [esi + 0x28]
mov dword [esp + 0x4c], ebp
movsx ebp, word [edi + 0x10]
mov dword [esp + 0x50], ebp
mov ebp, dword [esi + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x34]
mov esi, dword [esi + 0x44]
mov dword [esp + 0x2c], esi
movsx esi, word [edi]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x4c]
and esi, 0xffff
imul esi, dword [esp + 0x48]
mov dword [esp + 0x54], ebp
and ebp, 0xffff
imul ebp, dword [esp + 0x50]
sar esi, 0x10
sar ebp, 0x10
add ebp, esi
mov esi, dword [esp + 0x44]
and esi, 0xffff
imul esi, dword [esp + 0x40]
sar esi, 0x10
add ebp, esi
mov esi, dword [esp + 0x3c]
and esi, 0xffff
imul esi, dword [esp + 0x38]
sar esi, 0x10
add ebp, esi
mov esi, dword [esp + 0x34]
and esi, 0xffff
imul esi, dword [esp + 0x30]
sar esi, 0x10
add ebp, esi
mov esi, dword [esp + 0x2c]
and esi, 0xffff
imul esi, dword [esp + 0x14]
sar esi, 0x10
add ebp, esi
mov esi, dword [esp + 0x28]
and esi, 0xffff
imul esi, dword [esp + 0x24]
sar esi, 0x10
add ebp, esi
mov esi, eax
and esi, 0xffff
imul esi, dword [esp + 0x20]
sar esi, 0x10
add ebp, esi
mov esi, ebx
and esi, 0xffff
imul esi, dword [esp + 0x1c]
sar esi, 0x10
add ebp, esi
mov esi, dword [esp + 0x54]
sar esi, 0x10
imul esi, dword [esp + 0x50]
add ebp, esi
mov esi, dword [esp + 0x4c]
sar esi, 0x10
imul esi, dword [esp + 0x48]
add ebp, esi
mov esi, dword [esp + 0x44]
sar esi, 0x10
imul esi, dword [esp + 0x40]
add ebp, esi
mov esi, dword [esp + 0x3c]
sar esi, 0x10
imul esi, dword [esp + 0x38]
add ebp, esi
mov esi, dword [esp + 0x34]
sar esi, 0x10
imul esi, dword [esp + 0x30]
add ebp, esi
mov esi, dword [esp + 0x2c]
sar esi, 0x10
imul esi, dword [esp + 0x14]
add ebp, esi
mov esi, dword [esp + 0x28]
sar ebx, 0x10
imul ebx, dword [esp + 0x1c]
sar esi, 0x10
imul esi, dword [esp + 0x24]
sar eax, 0x10
imul eax, dword [esp + 0x20]
add ebx, ecx
add ebp, esi
add ebp, eax
add ebx, ebp
sar ebx, 5
inc ebx
sar ebx, 1
cmp ebx, 0x7fff
jle 0x59d2c0
mov ebx, 0x7fff
jmp 0x59d2cd
cmp ebx, 0xffff8000
jge 0x59d2cd
mov ebx, 0xffff8000
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x10]
add edi, dword [esp + 0x6c]
mov word [eax], bx
add eax, 2
cmp edi, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x10], edi
jl 0x59cf80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret