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

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, dword [esp + 0x6c]
imul ebx, ebx, 0x15d4
push ebp
push esi
mov esi, dword [esp + 0x70]
add ebx, dword [esi + 0x6c]
push edi
mov ebp, dword [ebx + 0x1a4]
inc ebp
push 0xe8
push ebp
mov dword [esp + 0x44], ebx
call sub.MSVCRT.dll_calloc
mov edi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x10], edi
cmp edi, eax
je 0x46a7fd
mov dword [esp + 0x1c], eax
cmp ebp, eax
jg 0x46a3e5
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
cdq
idiv dword [esi + 0x44]
mov ecx, dword [esi + 0x38]
mov ebp, dword [esp + 0x70]
imul ecx, edx
add ecx, dword [esi + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [ebp]
cmp ecx, eax
jg 0x46a40f
mov ecx, eax
mov eax, dword [esp + 0x1c]
imul eax, eax, 0xe8
add edi, eax
mov dword [edi + 0xc8], ecx
mov ecx, dword [esi + 0x3c]
imul ecx, dword [esp + 0x34]
add ecx, dword [esi + 0x34]
mov eax, dword [ebp + 4]
mov dword [esp + 0x68], edi
cmp ecx, eax
jle 0x46a439
mov eax, ecx
mov dword [edi + 0xcc], eax
mov eax, dword [ebp + 8]
lea ecx, [edx + 1]
imul ecx, dword [esi + 0x38]
add ecx, dword [esi + 0x30]
cmp ecx, eax
jge 0x46a452
mov eax, ecx
mov dword [edi + 0xd0], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 0xc]
inc eax
imul eax, dword [esi + 0x3c]
add eax, dword [esi + 0x34]
cmp eax, ecx
jl 0x46a46d
mov eax, ecx
mov dword [edi + 0xd4], eax
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0xc0], ecx
mov edx, dword [ebp + 0x10]
push 0x10
push edx
call sub.MSVCRT.dll_calloc
xor ecx, ecx
add esp, 8
mov dword [edi + 0xc4], eax
cmp eax, ecx
je 0x46a7ea
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
cmp dword [eax + 0xc0], ecx
jle 0x46a6e4
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
lea esp, [esp]
mov esi, dword [edi + 0xc4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + ecx]
add esi, dword [esp + 0x30]
mov ebx, dword [ebx + 0x15d0]
add ebx, dword [esp + 0x34]
mov dword [esi], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + ecx + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 4]
push 0x10
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x50], ebx
mov dword [esi + 8], eax
call sub.MSVCRT.dll_calloc
add esp, 8
mov dword [esi + 0xc], eax
test eax, eax
je 0x46a807
mov ecx, dword [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0xc8]
lea eax, [edx + ecx - 1]
cdq
idiv ecx
mov ebp, dword [esi + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0xcc]
lea eax, [edx + ebp - 1]
cdq
idiv ebp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0xd0]
lea eax, [edx + ecx - 1]
cdq
idiv ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xd4]
lea eax, [ecx + ebp - 1]
cdq
idiv ebp
mov dword [esp + 0x58], eax
mov eax, dword [esi + 8]
cmp eax, dword [esp + 0x14]
jle 0x46a570
mov dword [esp + 0x14], eax
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp eax, ecx
jle 0x46a6a7
lea eax, [ebx + 0x3b0]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
jmp 0x46a59c
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov edi, dword [esi + 0xc]
add edi, dword [esp + 0x2c]
test byte [ebx], 1
mov dword [esp + 0x20], edi
je 0x46a5bb
mov edx, dword [eax - 0x84]
mov dword [edi], edx
mov eax, dword [eax]
mov dword [edi + 4], eax
jmp 0x46a5c8
mov dword [edi], 0xf
mov dword [edi + 4], 0xf
mov ecx, dword [esi + 8]
sub ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x54]
dec ecx
mov edx, 1
shl edx, cl
lea esi, [edx + eax - 1]
mov eax, dword [esp + 0x50]
lea ebp, [edx + ebx - 1]
mov ebx, dword [esp + 0x58]
lea eax, [edx + eax - 1]
sar eax, cl
sar esi, cl
sar ebp, cl
lea ebx, [edx + ebx - 1]
mov edx, dword [edi + 4]
sar ebx, cl
mov ecx, edx
mov edi, eax
sar edi, cl
mov dword [esp + 0x60], ebx
shl edi, cl
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], edi
mov ecx, edx
mov edi, 1
shl edi, cl
lea edi, [edi + ebx - 1]
sar edi, cl
shl edi, cl
cmp esi, ebp
jne 0x46a635
xor ebp, ebp
jmp 0x46a65a
mov ecx, dword [esp + 0x5c]
mov ebx, 1
shl ebx, cl
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
sar esi, cl
lea ebp, [ebx + ebp - 1]
mov ebx, dword [esp + 0x60]
sar ebp, cl
shl esi, cl
shl ebp, cl
sub ebp, esi
sar ebp, cl
mov esi, dword [esp + 0x20]
mov dword [esi + 8], ebp
cmp eax, ebx
jne 0x46a669
xor edi, edi
jmp 0x46a671
sub edi, dword [esp + 0x64]
mov ecx, edx
sar edi, cl
mov eax, edi
imul eax, ebp
mov dword [esi + 0xc], edi
cmp eax, dword [esp + 0x18]
jle 0x46a683
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
add dword [esp + 0x28], 4
add dword [esp + 0x2c], 0x10
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [edx + 8]
jl 0x46a590
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
add dword [esp + 0x30], 0x10
add dword [esp + 0x34], 0x434
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x70]
inc ecx
add eax, 0x30
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
cmp ecx, dword [edx + 0xc0]
jl 0x46a4c0
mov esi, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x14], 1
mov dword [edi + 0x10], edx
mov eax, dword [ebp + 0x10]
imul eax, edx
mov dword [edi + 0xc], eax
imul eax, dword [esp + 0x14]
mov dword [edi + 8], eax
test ecx, ecx
jne 0x46a73e
mov eax, dword [ebx + 0xc]
imul eax, dword [ebp + 0x10]
imul eax, edx
imul eax, dword [esp + 0x14]
push 2
push eax
call sub.MSVCRT.dll_calloc
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ecx + 4], eax
test eax, eax
je 0x46a828
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x46a747
mov eax, dword [edi - 0xe4]
mov dword [edi + 4], eax
xor eax, eax
cmp dword [ebx + 0x1a8], eax
mov dword [edi + 0x28], 1
jne 0x46a776
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 8]
jmp 0x46a7ba
mov eax, ecx
imul eax, eax, 0x94
mov ebp, dword [eax + ebx + 0x1ac]
add eax, ebx
mov dword [edi + 0x2c], ebp
mov ebp, dword [eax + 0x1b0]
mov dword [edi + 0x30], ebp
mov ebp, dword [eax + 0x1b4]
mov dword [edi + 0x34], ebp
mov ebp, dword [eax + 0x1b8]
mov dword [edi + 0x38], ebp
lea ebp, [ecx + 3]
imul ebp, ebp, 0x94
mov ebp, dword [ebx + ebp]
mov dword [edi + 0x3c], ebp
mov eax, dword [eax + 0x1d0]
mov dword [edi + 0x50], eax
xor eax, eax
mov dword [edi + 0x48], edx
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov edx, dword [ebx + 0x1a4]
mov edi, dword [esp + 0x10]
inc ecx
inc edx
mov dword [esp + 0x1c], ecx
cmp ecx, edx
jl 0x46a3e3
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
push eax
push esi
push ecx
call fcn.00469cd0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call fcn.00469cd0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov edx, dword [esp + 0x78]
push edx
push esi
push ecx
call fcn.00469cd0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret