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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x4c]
push ebx
push ebp
push esi
mov ebp, dword [eax + 8]
mov esi, dword [esp + 0x60]
mov ecx, ebp
mov edx, dword [esp + 0x5c]
imul ecx, esi
mov eax, dword [eax]
add ecx, edx
mov ebx, dword [esp + 0x68]
push edi
mov edi, dword [esp + 0x68]
lea ecx, [eax + ecx*2]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x64], edi
sub ecx, edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x60], ebx
sub edi, ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x68], eax
sub ebx, eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x1c], 0
setge al
lea eax, [eax + eax - 1]
mov dword [esp + 0x70], eax
xor eax, eax
test edi, edi
setge al
lea eax, [eax + eax - 1]
mov dword [esp + 0x80], eax
xor eax, eax
test ebx, ebx
setge al
lea eax, [eax + eax - 1]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
sub eax, edx
mov edx, dword [esp + 0x78]
sub edx, esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], edx
xor edx, edx
mov esi, dword [esp + 0x78]
test eax, eax
setge dl
lea edx, [edx + edx - 1]
mov dword [esp + 0x20], edx
xor edx, edx
test esi, esi
setge dl
lea edx, [edx + edx - 1]
mov esi, edx
imul ebp, esi
imul esi, dword [esp + 0x78]
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x20]
imul ebp, eax
inc ebp
inc esi
mov eax, ecx
cmp ebp, esi
mov dword [esp + 0x50], ebp
cdq
jge 0x461017
idiv esi
mov dword [esp + 0x78], eax
mov eax, edi
cdq
idiv esi
mov dword [esp + 0x14], eax
mov eax, ebx
cdq
idiv esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
imul eax, ecx
cdq
idiv esi
mov eax, dword [esp + 0x80]
imul eax, edi
mov dword [esp + 0x28], edx
cdq
idiv esi
mov eax, dword [esp + 0x10]
imul eax, ebx
mov dword [esp + 0x34], edx
cdq
idiv esi
test ebp, ebp
mov dword [esp + 0x40], edx
jle 0x461258
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], ebp
lea ecx, [eax + eax]
mov dword [esp + 0x54], ecx
cmp dword [esp + 0x74], esi
jge 0x460fe3
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
shl eax, 6
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
shl eax, 5
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
shl eax, 5
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x80]
shl eax, 6
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x68]
shl eax, 6
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
shl eax, 5
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
shl edi, 5
shl edx, 5
shl eax, 5
mov dword [esp + 0x20], edx
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x5c]
xor eax, eax
mov ax, word [ecx]
xor ecx, ecx
mov cx, word [0x66eb5e]
mov ebx, ecx
mov cl, byte [0x66eb58]
and ebx, eax
shr ebx, cl
mov ecx, dword [0x66eb5c]
and ecx, 0xffff
and ecx, eax
mov dword [esp + 0x50], ecx
mov cl, byte [0x66eb57]
add ebx, edx
mov edx, dword [esp + 0x50]
shr edx, cl
mov bx, word [ebx*2 + 0x602650]
mov ecx, edx
mov edx, dword [esp + 0x1c]
add ecx, edx
or bx, word [ecx*2 + 0x606650]
xor ecx, ecx
mov cx, word [0x66eb5a]
and ecx, eax
mov eax, ecx
mov cl, byte [0x66eb56]
shr eax, cl
mov ecx, dword [esp + 0x64]
add eax, edi
or bx, word [eax*2 + 0x5fe650]
mov eax, dword [esp + 0x5c]
mov word [eax], bx
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
add ecx, ebx
mov ebx, dword [esp + 0x28]
add edi, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x64], ecx
add eax, ebx
cmp eax, esi
mov dword [esp + 0x6c], eax
jle 0x460f29
mov ebx, dword [esp + 0x70]
sub eax, esi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
add ecx, ebx
add edi, eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
add ecx, ebx
mov ebx, dword [esp + 0x34]
add edx, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x60], ecx
add eax, ebx
mov dword [esp + 0x1c], edx
cmp eax, esi
mov dword [esp + 0x7c], eax
jle 0x460f70
mov ebx, dword [esp + 0x80]
sub eax, esi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x38]
add ecx, ebx
add edx, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
add ecx, edx
mov edx, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x84]
add eax, ebx
mov dword [esp + 0x68], ecx
cmp eax, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x84], eax
jle 0x460fc1
mov ebx, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
add ecx, ebx
add edx, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x5c]
add ecx, ecx
add eax, ebp
add ebx, ecx
cmp eax, esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], ebx
jl 0x460e71
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
sub edx, esi
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x54]
add ecx, edx
dec eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], eax
jne 0x460e05
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret
idiv ebp
mov dword [esp + 0x78], eax
mov eax, edi
cdq
idiv ebp
mov dword [esp + 0x14], eax
mov eax, ebx
cdq
idiv ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
imul eax, ecx
cdq
idiv ebp
mov eax, dword [esp + 0x80]
imul eax, edi
mov dword [esp + 0x28], edx
cdq
idiv ebp
mov eax, dword [esp + 0x10]
imul eax, ebx
mov dword [esp + 0x34], edx
cdq
idiv ebp
test esi, esi
mov dword [esp + 0x40], edx
jle 0x461258
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], esi
lea ecx, [eax + eax]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x5c]
cmp eax, ebp
jge 0x461239
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
shl eax, 6
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x70]
shl eax, 5
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
shl eax, 5
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x80]
shl eax, 6
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x68]
shl eax, 6
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
shl eax, 5
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
shl edi, 5
shl ebx, 5
shl eax, 5
mov dword [esp + 0x3c], eax
xor edx, edx
xor eax, eax
mov dx, word [0x66eb5e]
mov ax, word [ecx]
mov cl, byte [0x66eb58]
mov ebp, edx
and ebp, eax
shr ebp, cl
mov ecx, dword [0x66eb5c]
and ecx, 0xffff
and ecx, eax
mov edx, ecx
mov cl, byte [0x66eb57]
add ebp, ebx
shr edx, cl
mov bp, word [ebp*2 + 0x602650]
mov ecx, edx
mov edx, dword [esp + 0x74]
add ecx, edx
or bp, word [ecx*2 + 0x606650]
xor ecx, ecx
mov cx, word [0x66eb5a]
and ecx, eax
mov eax, ecx
mov cl, byte [0x66eb56]
shr eax, cl
mov ecx, dword [esp + 0x5c]
add eax, edi
or bp, word [eax*2 + 0x5fe650]
mov eax, dword [esp + 0x78]
mov word [ecx], bp
mov ebp, dword [esp + 0x64]
add ebp, eax
mov eax, dword [esp + 0x24]
add edi, eax
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x28]
mov dword [esp + 0x64], ebp
cmp eax, esi
mov dword [esp + 0x6c], eax
jle 0x46118d
sub eax, esi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x70]
add ebp, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x64], ebp
add edi, eax
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
add ebp, eax
mov eax, dword [esp + 0x30]
add edx, eax
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x34]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x74], edx
cmp eax, esi
mov dword [esp + 0x7c], eax
jle 0x4611d2
sub eax, esi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x80]
add ebp, eax
mov eax, dword [esp + 0x38]
add edx, eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
add edx, ebp
mov ebp, dword [esp + 0x40]
add ebx, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x68], edx
add eax, ebp
cmp eax, esi
mov dword [esp + 0x84], eax
jle 0x461217
mov ebp, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x44]
add edx, ebp
add ebx, eax
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x50]
add edx, edx
add eax, esi
add ecx, edx
cmp eax, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], ecx
jl 0x4610e1
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub eax, ebp
add ecx, edi
dec edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x4c], edx
jne 0x46107b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x48
ret