Function at 0x43f0e0
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 0x43f742
cmp ecx, 0x18
je 0x43f4ba
cmp ecx, 0x24
jne 0x43fac1
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
jle 0x43fac1
jmp 0x43f120
mov eax, dword [esp + 0x60]
sar ecx, 0x10
lea ecx, [eax + ecx*4]
mov eax, dword [ecx + 0x54]
add eax, dword [ecx + 0x38]
mov edi, dword [ecx + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0x58]
add eax, dword [ecx + 0x34]
mov ebx, dword [ecx + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x5c]
add eax, dword [ecx + 0x30]
mov ebp, dword [ecx + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x60]
add eax, dword [ecx + 0x2c]
add edi, dword [ecx + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x64]
add eax, dword [ecx + 0x28]
add ebx, dword [ecx + 0x40]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0x68]
add eax, dword [ecx + 0x24]
add ebp, dword [ecx + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x6c]
add eax, dword [ecx + 0x20]
mov esi, dword [ecx + 0x8c]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x70]
add eax, dword [ecx + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x74]
add eax, dword [ecx + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x78]
add eax, dword [ecx + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x7c]
add eax, dword [ecx + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x80]
add eax, dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x84]
add eax, dword [ecx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x88]
add eax, dword [ecx + 4]
mov ecx, dword [ecx]
add esi, ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x14], eax
movsx eax, word [edx + 0x22]
and esi, 0xffff
mov ecx, edi
and ecx, 0xffff
imul ecx, eax
movsx eax, word [edx]
imul esi, eax
movsx eax, word [edx + 2]
sar esi, 0x10
sar ecx, 0x10
add ecx, esi
mov esi, dword [esp + 0x14]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 4]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x18]
and esi, 0xffff
imul esi, eax
movsx eax, word [edx + 6]
sar esi, 0x10
add ecx, esi
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
sar esi, 0x10
add ecx, esi
movsx eax, word [edx + 0x10]
mov esi, dword [esp + 0x30]
and esi, 0xffff
imul esi, eax
sar esi, 0x10
add ecx, esi
movsx eax, word [edx + 0x12]
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
movsx eax, word [edx + 0x1c]
sar esi, 0x10
add ecx, esi
mov esi, dword [esp + 0x48]
and esi, 0xffff
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
sar edi, 0x10
movsx eax, word [edx + 0x22]
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
add ecx, eax
movsx edi, word [edx + 0xa]
mov eax, dword [esp + 0x24]
sar eax, 0x10
imul eax, edi
add ecx, eax
movsx edi, word [edx + 0xc]
mov eax, dword [esp + 0x28]
sar eax, 0x10
imul eax, edi
add ecx, eax
movsx edi, word [edx + 0xe]
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
movsx edi, word [edx + 0x18]
add ecx, eax
mov eax, dword [esp + 0x40]
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 0x43f481
mov ecx, 0x7fff
jmp 0x43f48e
cmp ecx, 0xffff8000
jge 0x43f48e
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
mov dword [esp + 0x5c], eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x68]
jl 0x43f120
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
jle 0x43fac1
jmp 0x43f4d0
mov eax, dword [esp + 0x60]
sar ecx, 0x10
lea ecx, [eax + ecx*4]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x20]
mov edi, dword [ecx + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0x40]
add eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x44]
add eax, dword [ecx + 0x18]
mov ebp, dword [ecx + 0x38]
mov dword [esp + 0x34], eax
mov eax, dword [ecx + 0x48]
add eax, dword [ecx + 0x14]
add edi, dword [ecx + 0x2c]
add ebx, dword [ecx + 0x28]
add ebp, dword [ecx + 0x24]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0x4c]
add eax, dword [ecx + 0x10]
mov esi, edi
mov dword [esp + 0x3c], eax
mov eax, dword [ecx + 0x50]
add eax, dword [ecx + 0xc]
and esi, 0xffff
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x54]
add eax, dword [ecx + 8]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x58]
add eax, dword [ecx + 4]
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]
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
add ecx, eax
movsx edi, word [edx + 4]
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
movsx edi, word [edx]
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 + 0x28]
sar eax, 0x10
imul eax, edi
add ecx, eax
sar ebp, 0x10
imul ebp, esi
add ecx, ebp
sar ecx, 5
inc ecx
sar ecx, 1
cmp ecx, 0x7fff
jle 0x43f709
mov ecx, 0x7fff
jmp 0x43f716
cmp ecx, 0xffff8000
jge 0x43f716
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
mov dword [esp + 0x5c], eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x68]
jl 0x43f4d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
xor edi, edi
mov dword [esp + 0x10], edi
test esi, esi
jle 0x43fac1
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
lea eax, [eax + eax*8 - 9]
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 0x43fa90
mov ebx, 0x7fff
jmp 0x43fa9d
cmp ebx, 0xffff8000
jge 0x43fa9d
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
mov dword [esp + 0x5c], eax
mov dword [esp + 0x10], edi
cmp edi, dword [esp + 0x68]
jl 0x43f750
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret