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

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp eax, 0xc
ja 0x101657dd
cmp eax, 8
jbe 0x1016543e
mov dword [esp + 0x24], 0
cmp eax, 0xa
jbe 0x10165303
cmp eax, 0xc
jne 0x1016524e
cmp dword [esp + 0x1c], 0
jle 0x1016594c
mov ebp, dword [esp + 0x2c]
add ebp, 0xffffffd4
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
lea ebp, [ebp + 4]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp]
imul eax, dword [ecx + 8]
imul edx, dword [ecx + 4]
add edx, eax
mov eax, dword [ebp + 0x18]
imul eax, dword [ecx + 0xc]
add edx, eax
mov eax, dword [ebp + 0x14]
imul eax, dword [ecx + 0x10]
add edx, eax
mov eax, dword [ebp + 0x10]
imul eax, dword [ecx + 0x14]
add edx, eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ecx + 0x18]
add edx, eax
mov eax, dword [ebp + 8]
imul eax, dword [ecx + 0x1c]
add edx, eax
mov eax, dword [ebp + 4]
imul eax, dword [ecx + 0x20]
add edx, eax
mov eax, dword [ebp + 0x24]
imul eax, dword [ecx]
add edx, eax
mov eax, dword [ebp - 8]
imul eax, dword [ecx + 0x2c]
add edx, eax
mov eax, dword [ecx + 0x24]
imul eax, edi
add edx, eax
mov eax, dword [ecx + 0x28]
imul eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], edi
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, cl
add edx, dword [ebx + eax*4]
inc eax
mov dword [ebp + 0x28], edx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jl 0x101651b2
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [esp + 0x1c], 0
jle 0x1016594c
mov ebp, dword [esp + 0x2c]
add ebp, 0xffffffd8
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
nop word [eax + eax]
mov ecx, dword [esp + 0x20]
lea ebp, [ebp + 4]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp]
imul eax, dword [ecx + 4]
imul edx, dword [ecx]
add edx, eax
mov eax, dword [ebp + 0x18]
imul eax, dword [ecx + 8]
add edx, eax
mov eax, dword [ebp + 0x14]
imul eax, dword [ecx + 0xc]
add edx, eax
mov eax, dword [ebp + 0x10]
imul eax, dword [ecx + 0x10]
add edx, eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ecx + 0x14]
add edx, eax
mov eax, dword [ebp + 8]
imul eax, dword [ecx + 0x18]
add edx, eax
mov eax, dword [ebp + 4]
imul eax, dword [ecx + 0x1c]
add edx, eax
mov eax, dword [ebp - 8]
imul eax, dword [ecx + 0x28]
add edx, eax
mov eax, dword [ecx + 0x24]
imul eax, dword [esp + 0x10]
mov dword [esp + 0x10], edi
add edx, eax
mov eax, dword [ecx + 0x20]
mov ecx, dword [esp + 0x28]
imul eax, edi
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, cl
add edx, dword [ebx + eax*4]
inc eax
mov dword [ebp + 0x24], edx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jl 0x10165270
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
jne 0x101653a8
cmp dword [esp + 0x1c], 0
jle 0x1016594c
mov ebp, dword [esp + 0x2c]
add ebp, 0xffffffdc
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
lea ebp, [ebp + 4]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp]
imul eax, dword [ecx + 8]
imul edx, dword [ecx + 4]
add edx, eax
mov eax, dword [ebp + 0x10]
imul eax, dword [ecx + 0xc]
add edx, eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ecx + 0x10]
add edx, eax
mov eax, dword [ebp + 8]
imul eax, dword [ecx + 0x14]
add edx, eax
mov eax, dword [ebp + 4]
imul eax, dword [ecx + 0x18]
add edx, eax
mov eax, dword [ebp - 8]
imul eax, dword [ecx + 0x24]
add edx, eax
mov eax, dword [ebp + 0x1c]
imul eax, dword [ecx]
add edx, eax
mov eax, dword [ecx + 0x1c]
imul eax, edi
add edx, eax
mov eax, dword [ecx + 0x20]
imul eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], edi
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, cl
add edx, dword [ebx + eax*4]
inc eax
mov dword [ebp + 0x20], edx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jl 0x10165322
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [esp + 0x1c], 0
jle 0x1016594c
mov ebp, dword [esp + 0x2c]
add ebp, 0xffffffe0
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
lea ebp, [ebp + 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp]
imul eax, dword [ecx + 8]
imul edx, dword [ecx + 4]
add edx, eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ecx + 0xc]
add edx, eax
mov eax, dword [ebp + 8]
imul eax, dword [ecx + 0x10]
add edx, eax
mov eax, dword [ebp + 4]
imul eax, dword [ecx + 0x14]
add edx, eax
mov eax, dword [ebp - 8]
imul eax, dword [ecx + 0x20]
add edx, eax
mov eax, dword [ebp + 0x18]
imul eax, dword [ecx]
add edx, eax
mov eax, dword [ecx + 0x1c]
imul eax, dword [esp + 0x10]
mov dword [esp + 0x10], edi
add edx, eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [esp + 0x28]
imul eax, edi
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, cl
add edx, dword [ebx + eax*4]
inc eax
mov dword [ebp + 0x1c], edx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jl 0x101653c1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, 4
jbe 0x1016566a
mov dword [esp + 0x24], 0
cmp eax, 6
jbe 0x1016557b
cmp eax, 8
jne 0x101654f4
cmp dword [esp + 0x1c], 0
jle 0x1016594c
mov ebp, dword [esp + 0x2c]
add ebp, 0xffffffe4
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
nop word [eax + eax]
mov ecx, dword [esp + 0x20]
lea ebp, [ebp + 4]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp]
imul eax, dword [ecx + 8]
imul edx, dword [ecx + 4]
add edx, eax
mov eax, dword [ebp + 8]
imul eax, dword [ecx + 0xc]
add edx, eax
mov eax, dword [ebp + 4]
imul eax, dword [ecx + 0x10]
add edx, eax
mov eax, dword [ebp - 8]
imul eax, dword [ecx + 0x1c]
add edx, eax
mov eax, dword [ebp + 0x14]
imul eax, dword [ecx]
add edx, eax
mov eax, dword [ecx + 0x14]
imul eax, edi
add edx, eax
mov eax, dword [ecx + 0x18]
imul eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], edi
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, cl
add edx, dword [ebx + eax*4]
inc eax
mov dword [ebp + 0x18], edx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jl 0x10165480
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [esp + 0x1c], 0
jle 0x1016594c
mov ebp, dword [esp + 0x2c]
add ebp, 0xffffffe8
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
nop dword [eax]
mov ecx, dword [esp + 0x20]
lea ebp, [ebp + 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [ebp]
imul eax, dword [ecx + 8]
imul edx, dword [ecx + 4]
add edx, eax
mov eax, dword [ebp + 4]
imul eax, dword [ecx + 0xc]
add edx, eax
mov eax, dword [ebp - 8]
imul eax, dword [ecx + 0x18]
add edx, eax
mov eax, dword [ebp + 0x10]
imul eax, dword [ecx]
add edx, eax
mov eax, dword [ecx + 0x14]
imul eax, dword [esp + 0x10]
mov dword [esp + 0x10], edi
add edx, eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [esp + 0x28]
imul eax, edi
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, cl
add edx, dword [ebx + eax*4]
inc eax
mov dword [ebp + 0x14], edx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jl 0x10165510
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
jne 0x101655f8
cmp dword [esp + 0x1c], 0
jle 0x1016594c
mov ebp, dword [esp + 0x2c]
add ebp, 0xffffffec
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
lea ebp, [ebp + 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov edi, dword [ebp]
imul eax, dword [ecx + 8]
imul edx, dword [ecx + 4]
add edx, eax
mov eax, dword [ebp - 8]
imul eax, dword [ecx + 0x14]
add edx, eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ecx]
add edx, eax
mov eax, dword [ecx + 0xc]
imul eax, edi
add edx, eax
mov eax, dword [ecx + 0x10]
imul eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], edi
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, cl
add edx, dword [ebx + eax*4]
inc eax
mov dword [ebp + 0x10], edx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jl 0x10165596
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [esp + 0x1c], 0
jle 0x1016594c
mov ebp, dword [esp + 0x2c]
add ebp, 0xfffffff0
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
lea ebp, [ebp + 4]
mov edx, dword [ebp + 4]
mov eax, dword [ebp - 8]
mov edi, dword [ebp]
imul eax, dword [ecx + 0x10]
imul edx, dword [ecx + 4]
add edx, eax
mov eax, dword [ebp + 8]
imul eax, dword [ecx]
add edx, eax
mov eax, dword [ecx + 0xc]
imul eax, dword [esp + 0x10]
mov dword [esp + 0x10], edi
add edx, eax
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x28]
imul eax, edi
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, cl
add edx, dword [ebx + eax*4]
inc eax
mov dword [ebp + 0xc], edx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jl 0x10165611
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp eax, 2
jbe 0x10165757
mov dword [esp + 0x24], 0
cmp eax, 4
jne 0x101656f0
cmp dword [esp + 0x1c], 0
jle 0x1016594c
mov ebp, dword [esp + 0x2c]
add ebp, 0xfffffff4
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
nop dword [eax]
mov ecx, dword [esp + 0x20]
lea ebp, [ebp + 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 4]
mov edi, dword [ebp]
imul eax, dword [ecx]
imul edx, dword [ecx + 0xc]
add edx, eax
mov eax, dword [ecx + 4]
imul eax, edi
add edx, eax
mov eax, dword [ecx + 8]
imul eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], edi
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, cl
add edx, dword [ebx + eax*4]
inc eax
mov dword [ebp + 8], edx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jl 0x101656a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [esp + 0x1c], 0
jle 0x1016594c
mov ebp, dword [esp + 0x2c]
add ebp, 0xfffffff8
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
nop dword [eax]
mov ecx, dword [esp + 0x20]
lea ebp, [ebp + 4]
mov edx, dword [ebp - 8]
mov edi, dword [ebp]
imul edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
imul eax, dword [esp + 0x10]
mov dword [esp + 0x10], edi
add edx, eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x28]
imul eax, edi
add edx, eax
mov eax, dword [esp + 0x24]
sar edx, cl
add edx, dword [ebx + eax*4]
inc eax
mov dword [ebp + 4], edx
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
jl 0x10165710
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
jne 0x1016579e
xor edi, edi
cmp dword [esp + 0x1c], edi
jle 0x1016594c
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x20]
add esi, 0xfffffffc
mov ecx, dword [esi]
mov edx, dword [esi - 4]
lea esi, [esi + 4]
imul edx, dword [ebp + 4]
mov eax, dword [ebp]
imul eax, ecx
mov ecx, dword [esp + 0x28]
add edx, eax
sar edx, cl
mov ecx, dword [ebx + edi*4]
inc edi
add ecx, edx
mov dword [esi], ecx
cmp edi, dword [esp + 0x1c]
jl 0x10165772
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x1016594c
mov edx, dword [esp + 0x2c]
sub ebx, edx
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
nop dword [eax + eax]
mov eax, dword [edx - 4]
lea edx, [edx + 4]
imul eax, dword [edi]
sar eax, cl
add eax, dword [ebx + edx - 4]
mov dword [edx - 4], eax
sub esi, 1
jne 0x101657c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor ebp, ebp
cmp dword [esp + 0x1c], ebp
jle 0x1016594c
mov esi, dword [esp + 0x2c]
lea ecx, [eax - 0xd]
mov edi, dword [esp + 0x20]
add esi, 0xffffff84
mov dword [esp + 0x24], ecx
nop dword [eax + eax]
xor eax, eax
cmp ecx, 0x13
ja case.default.0x1016580b
jmp dword [ecx*4 + 0x10165954]
mov eax, dword [esi - 4]
imul eax, dword [edi + 0x7c]
mov ecx, dword [edi + 0x78]
imul ecx, dword [esi]
add eax, ecx
mov ecx, dword [esi + 4]
imul ecx, dword [edi + 0x74]
add eax, ecx
mov ecx, dword [esi + 8]
imul ecx, dword [edi + 0x70]
add eax, ecx
mov ecx, dword [esi + 0xc]
imul ecx, dword [edi + 0x6c]
add eax, ecx
mov ecx, dword [esi + 0x10]
imul ecx, dword [edi + 0x68]
add eax, ecx
mov ecx, dword [esi + 0x14]
imul ecx, dword [edi + 0x64]
add eax, ecx
mov ecx, dword [esi + 0x18]
imul ecx, dword [edi + 0x60]
add eax, ecx
mov ecx, dword [esi + 0x1c]
imul ecx, dword [edi + 0x5c]
add eax, ecx
mov ecx, dword [esi + 0x20]
imul ecx, dword [edi + 0x58]
add eax, ecx
mov ecx, dword [esi + 0x24]
imul ecx, dword [edi + 0x54]
add eax, ecx
mov ecx, dword [esi + 0x28]
imul ecx, dword [edi + 0x50]
add eax, ecx
mov ecx, dword [esi + 0x2c]
imul ecx, dword [edi + 0x4c]
add eax, ecx
mov ecx, dword [esi + 0x30]
imul ecx, dword [edi + 0x48]
add eax, ecx
mov ecx, dword [esi + 0x34]
imul ecx, dword [edi + 0x44]
add eax, ecx
mov ecx, dword [esi + 0x38]
imul ecx, dword [edi + 0x40]
add eax, ecx
mov ecx, dword [esi + 0x3c]
imul ecx, dword [edi + 0x3c]
add eax, ecx
mov ecx, dword [esi + 0x40]
imul ecx, dword [edi + 0x38]
add eax, ecx
mov ecx, dword [esi + 0x44]
imul ecx, dword [edi + 0x34]
add eax, ecx
mov edx, dword [esi + 0x48]
imul edx, dword [edi + 0x30]
mov ecx, dword [esi + 0x4c]
imul ecx, dword [edi + 0x2c]
add edx, ecx
mov ecx, dword [esi + 0x50]
imul ecx, dword [edi + 0x28]
add edx, ecx
mov ecx, dword [esi + 0x54]
imul ecx, dword [edi + 0x24]
add edx, ecx
mov ecx, dword [esi + 0x58]
imul ecx, dword [edi + 0x20]
add edx, ecx
mov ecx, dword [esi + 0x5c]
imul ecx, dword [edi + 0x1c]
add edx, ecx
mov ecx, dword [esi + 0x60]
imul ecx, dword [edi + 0x18]
add edx, ecx
mov ecx, dword [esi + 0x64]
imul ecx, dword [edi + 0x14]
add edx, ecx
mov ecx, dword [esi + 0x68]
imul ecx, dword [edi + 0x10]
add edx, ecx
mov ecx, dword [esi + 0x6c]
imul ecx, dword [edi + 0xc]
add edx, ecx
mov ecx, dword [esi + 0x70]
imul ecx, dword [edi + 8]
add edx, ecx
mov ecx, dword [esi + 0x74]
imul ecx, dword [edi + 4]
add edx, ecx
mov ecx, dword [esi + 0x78]
imul ecx, dword [edi]
add eax, ecx
add eax, edx
mov ecx, dword [esp + 0x28]
sar eax, cl
add eax, dword [ebx + ebp*4]
inc ebp
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x7c], eax
add esi, 4
cmp ebp, dword [esp + 0x1c]
jl 0x10165800
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret