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

Disassembly:
sub esp, 0x6c
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
mov dword [edx + 0x20], ecx
mov eax, dword [ecx + 0x4c]
push ebx
push esi
mov esi, dword [esp + 0x84]
mov esi, dword [eax + esi*4]
mov eax, esi
imul esi, esi, 0x350
imul eax, eax, 0x15d4
add eax, dword [ecx + 0x6c]
mov ecx, dword [edx + 0x18]
add esi, dword [ecx + 8]
xor ebx, ebx
mov dword [esp + 0x58], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x54], ebx
cmp dword [esi + 0x10], ebx
jle 0x46cb9c
push ebp
push edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
jmp 0x46c4f4
mov eax, dword [esp + 0x60]
mov ebp, dword [eax + 0x15d0]
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebx + eax]
mov edx, dword [esi]
lea eax, [edx + ecx - 1]
cdq
idiv ecx
mov edi, dword [esi + 0x14]
add edi, dword [esp + 0x3c]
add ebp, dword [esp + 0x38]
mov dword [esp + 0x74], edi
mov dword [esp + 0x8c], ebp
mov dword [edi], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ebx + ecx + 4]
mov edx, dword [esi + 4]
lea eax, [ecx + edx - 1]
cdq
idiv ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ebx + ecx]
mov edx, dword [esi + 8]
lea eax, [ecx + edx - 1]
cdq
idiv ecx
mov dword [edi + 8], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ebx + ecx + 4]
mov edx, dword [esi + 0xc]
lea eax, [ecx + edx - 1]
cdq
idiv ecx
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 4]
mov dword [edi + 0x10], eax
imul eax, eax, 0x7c
push eax
call sub.MSVCRT.dll_malloc
mov dword [edi + 0x14], eax
xor eax, eax
add esp, 4
mov dword [esp + 0x80], eax
cmp dword [edi + 0x10], eax
jle 0x46cb74
jmp 0x46c5af
mov ebp, dword [esp + 0x8c]
mov eax, dword [esp + 0x80]
mov ebx, dword [edi + 0x10]
sub ebx, eax
dec ebx
mov esi, eax
imul esi, esi, 0x7c
add esi, dword [edi + 0x14]
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [edi]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x34], esi
lea edx, [eax + ecx - 1]
mov ecx, ebx
sar edx, cl
mov dword [esp + 0x14], eax
mov dword [esi], edx
mov ecx, dword [edi + 4]
lea edx, [eax + ecx - 1]
mov ecx, ebx
sar edx, cl
mov dword [esi + 4], edx
mov ecx, dword [edi + 8]
lea edx, [eax + ecx - 1]
mov ecx, ebx
sar edx, cl
mov dword [esi + 8], edx
mov ecx, dword [edi + 0xc]
lea edx, [eax + ecx - 1]
mov ecx, ebx
sar edx, cl
xor eax, eax
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x80]
test edx, edx
setne al
lea eax, [eax + eax + 1]
mov dword [esi + 0x18], eax
test byte [ebp], 1
mov dword [esp + 0x50], eax
je 0x46c637
mov ecx, dword [ebp + edx*4 + 0x32c]
mov eax, dword [ebp + edx*4 + 0x3b0]
jmp 0x46c63e
mov ecx, 0xf
mov eax, ecx
mov ebp, dword [esi]
mov edx, dword [esi + 4]
sar ebp, cl
mov dword [esp + 0x88], ecx
shl ebp, cl
mov ecx, eax
sar edx, cl
shl edx, cl
mov dword [esp + 0x10], edx
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 0xc]
lea edx, [edx + ecx - 1]
mov ecx, eax
sar edx, cl
shl edx, cl
mov ecx, dword [esi + 8]
mov dword [esp + 0x58], edx
cmp dword [esi], ecx
jne 0x46c67b
xor edx, edx
jmp 0x46c69f
mov ecx, dword [esp + 0x88]
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 8]
lea edx, [edx + ecx - 1]
mov ecx, dword [esp + 0x88]
sar edx, cl
shl edx, cl
sub edx, ebp
sar edx, cl
mov ecx, dword [esi + 4]
mov dword [esi + 0x10], edx
cmp ecx, dword [esi + 0xc]
jne 0x46c6ae
xor edx, edx
jmp 0x46c6ba
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x10]
mov ecx, eax
sar edx, cl
cmp dword [esp + 0x80], 0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x14], edx
jne 0x46c6e0
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
jmp 0x46c6fd
mov edx, dword [esp + 0x88]
inc ecx
inc ebp
sar ecx, 1
dec edx
sar ebp, 1
dec eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov ecx, edx
mov dword [esp + 0x44], ebp
mov ebp, dword [esp + 0x8c]
mov edx, dword [ebp + 8]
mov dword [esp + 0x28], edx
cmp edx, ecx
jl 0x46c717
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x88], ecx
cmp ecx, eax
jl 0x46c72c
mov dword [esp + 0x88], eax
cmp dword [esp + 0x50], 0
mov dword [esp + 0x10], 0
jle 0x46cb54
lea ebp, [esi + 0x38]
mov dword [esp + 0x58], ebp
jmp 0x46c750
mov edx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x80], eax
jne 0x46c763
xor ecx, ecx
jmp 0x46c768
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x18], ecx
mov dword [ebp - 0xc], ecx
cmp ecx, 1
je 0x46c77d
mov dword [esp + 0x30], eax
cmp ecx, 3
jne 0x46c785
mov dword [esp + 0x30], 1
cmp ecx, 2
je 0x46c793
mov dword [esp + 0x2c], eax
cmp ecx, 3
jne 0x46c79b
mov dword [esp + 0x2c], 1
cmp ecx, eax
jne 0x46c7d8
mov eax, dword [edi]
lea eax, [edx + eax - 1]
mov ecx, ebx
sar eax, cl
mov dword [ebp - 0x1c], eax
mov ecx, dword [edi + 4]
lea eax, [edx + ecx - 1]
mov ecx, ebx
sar eax, cl
mov dword [ebp - 0x18], eax
mov ecx, dword [edi + 8]
lea eax, [edx + ecx - 1]
mov ecx, ebx
sar eax, cl
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0xc]
lea edx, [edx + ecx - 1]
mov ecx, ebx
sar edx, cl
mov dword [ebp - 0x10], edx
jmp 0x46c833
lea ecx, [ebx + 1]
mov ebx, edx
imul ebx, dword [esp + 0x30]
mov eax, 1
shl eax, cl
mov edx, eax
sub edx, ebx
mov ebx, dword [edi]
mov dword [esp + 0x50], edx
lea edx, [edx + ebx - 1]
sar edx, cl
mov ebx, dword [esp + 0x50]
mov dword [ebp - 0x1c], edx
mov edx, dword [esp + 0x14]
imul edx, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [edi + 4]
lea edx, [edx + eax - 1]
sar edx, cl
mov dword [ebp - 0x18], edx
mov edx, dword [edi + 8]
lea edx, [edx + ebx - 1]
mov ebx, dword [esp + 0x54]
sar edx, cl
mov dword [ebp - 0x14], edx
mov edx, dword [edi + 0xc]
lea eax, [edx + eax - 1]
sar eax, cl
mov dword [ebp - 0x10], eax
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x46c844
mov dword [esp + 0x1c], eax
jmp 0x46c853
mov ecx, dword [esp + 0x10]
lea edx, [ecx + eax*2]
lea eax, [eax + edx - 2]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x8c]
cmp dword [ecx + 0x14], 0
jne 0x46c86c
mov edx, dword [esp + 0x18]
push edx
call fcn.0046f5f0
jmp 0x46c876
mov eax, dword [esp + 0x18]
push eax
call fcn.0046f330
mov ecx, dword [esp + 0x88]
fld qword [0x4bf4b0]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + edx + 0x18]
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x20]
sub ecx, dword [edx + eax*8 + 0x1c]
add esp, 4
add ecx, dword [esp + 0x30]
mov dword [esp + 0x50], ecx
fild dword [esp + 0x50]
call sub.MSVCRT.dll__CIpow
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x1c]
fild dword [eax + ecx*8 + 0x20]
fmul qword [0x4e0ba0]
fadd qword [0x4bf4a8]
fmulp st(1)
fmul qword [0x4bf500]
fstp dword [ebp]
mov ecx, dword [eax + ecx*8 + 0x1c]
mov edx, dword [eax + 0x324]
lea eax, [ecx + edx - 1]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x14]
imul eax, dword [esi + 0x10]
lea ecx, [eax + eax*8]
add ecx, ecx
add ecx, ecx
push ecx
call sub.MSVCRT.dll_malloc
mov dword [ebp - 8], eax
mov edx, dword [esi + 0x14]
imul edx, dword [esi + 0x10]
add esp, 4
mov dword [esp + 0x2c], 0
test edx, edx
jle 0x46cb3b
mov ecx, dword [esp + 0x20]
mov edi, 1
shl edi, cl
mov ecx, dword [esp + 0x24]
mov ebx, 1
shl ebx, cl
mov ecx, dword [esp + 0x28]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], eax
jmp 0x46c978
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x2c]
mov esi, dword [esi + 0x10]
cdq
idiv esi
mov esi, dword [ebp - 8]
add esi, dword [esp + 0x30]
mov ecx, edi
imul ecx, edx
add ecx, dword [esp + 0x44]
mov edx, ebx
imul edx, eax
add edx, dword [esp + 0x48]
mov eax, dword [ebp - 0x1c]
add edi, ecx
add ebx, edx
cmp ecx, eax
jle 0x46c9a8
mov eax, ecx
mov dword [esi], eax
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
jg 0x46c9b3
mov edx, ecx
mov dword [esi + 4], edx
mov ecx, dword [ebp - 0x14]
cmp edi, ecx
jge 0x46c9c5
mov ecx, edi
mov dword [esp + 0x4c], edi
jmp 0x46c9c9
mov dword [esp + 0x4c], ecx
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esp + 0x1c], ebx
cmp ebx, ecx
jl 0x46c9db
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
mov dword [esi + 0xc], ecx
mov ecx, ebx
sar eax, cl
shl eax, cl
mov ecx, dword [esp + 0x88]
sar edx, cl
mov dword [esp + 0x6c], eax
shl edx, cl
mov ecx, dword [esp + 0x50]
lea edi, [edi + ecx - 1]
mov ecx, ebx
sar edi, cl
mov dword [esp + 0x70], edx
shl edi, cl
sub edi, eax
mov eax, dword [esp + 0x18]
sar edi, cl
mov ecx, dword [esp + 0x1c]
lea ebx, [ecx + eax - 1]
mov ecx, dword [esp + 0x88]
sar ebx, cl
mov dword [esi + 0x10], edi
shl ebx, cl
sub ebx, edx
sar ebx, cl
mov edx, ebx
imul edx, edi
imul edx, edx, 0x2c
push edx
mov dword [esi + 0x14], ebx
call sub.MSVCRT.dll_malloc
push ebx
push edi
mov dword [esi + 0x18], eax
call fcn.004708e0
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x14]
push eax
push ecx
call fcn.004708e0
mov edx, dword [esi + 0x10]
imul edx, dword [esi + 0x14]
add esp, 0x14
xor ebx, ebx
mov dword [esi + 0x20], eax
test edx, edx
jle 0x46cb10
mov dword [esp + 0x1c], ebx
lea esp, [esp]
mov eax, ebx
cdq
idiv dword [esi + 0x10]
mov edi, dword [esp + 0x50]
imul eax, dword [esp + 0x18]
imul edx, edi
add eax, dword [esp + 0x70]
add edx, dword [esp + 0x6c]
mov ecx, eax
mov eax, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x18]
add eax, dword [esp + 0x1c]
lea ebp, [edx + edi]
mov dword [eax], 0
mov dword [eax + 4], 0
mov edi, dword [esi]
cmp edx, edi
jg 0x46cac5
mov edx, edi
mov dword [eax + 8], edx
mov edx, dword [esi + 4]
cmp ecx, edx
jg 0x46cad1
mov ecx, edx
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 8]
cmp ebp, ecx
jge 0x46cadd
mov ecx, ebp
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jge 0x46caed
mov ecx, edx
add dword [esp + 0x1c], 0x2c
mov dword [eax + 0x14], ecx
mov dword [eax + 0x28], 0
mov ecx, dword [esi + 0x10]
imul ecx, dword [esi + 0x14]
inc ebx
cmp ebx, ecx
jl 0x46ca80
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x14]
imul edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x30], 0x24
inc eax
mov dword [esp + 0x2c], eax
mov esi, ecx
cmp eax, edx
jl 0x46c970
mov edi, dword [esp + 0x74]
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
inc eax
add ebp, 0x20
mov dword [esp + 0x10], eax
mov dword [esp + 0x58], ebp
cmp eax, dword [esi + 0x18]
jl 0x46c750
mov eax, dword [esp + 0x80]
inc eax
mov dword [esp + 0x80], eax
cmp eax, dword [edi + 0x10]
jl 0x46c5a1
mov esi, dword [esp + 0x78]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x5c]
add dword [esp + 0x38], 0x434
add dword [esp + 0x3c], 0x20
inc eax
add ebx, 0x30
mov dword [esp + 0x5c], eax
mov dword [esp + 0x40], ebx
cmp eax, dword [esi + 0x10]
jl 0x46c4f0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x6c
ret