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

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, dword [esp + 0x6c]
imul ebx, ebx, 0x15d4
push esi
mov esi, dword [esp + 0x6c]
add ebx, dword [esi + 0x6c]
push edi
mov eax, dword [ebx + 0x1a4]
inc eax
xor edi, edi
push 0xe8
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], ebx
call sub.MSVCRT.dll_calloc
add esp, 8
mov dword [esp + 0xc], eax
cmp eax, edi
jne 0x46a89b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov cl, byte [esi + 0x10]
mov byte [eax], cl
mov edx, dword [ebx + 0x1a4]
inc edx
push ebp
mov dword [esp + 0x18], edi
test edx, edx
jle 0x46ae71
mov eax, dword [esp + 0x78]
cdq
idiv dword [esi + 0x44]
mov ecx, dword [esi + 0x38]
mov ebp, dword [esp + 0x70]
mov edi, edx
imul ecx, edi
add ecx, dword [esi + 0x30]
mov edx, eax
mov eax, dword [ebp]
mov dword [esp + 0x44], edi
cmp ecx, eax
jg 0x46a8da
mov ecx, eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
imul eax, eax, 0xe8
add edi, eax
mov dword [edi + 0xc8], ecx
mov ecx, dword [esi + 0x3c]
mov eax, dword [ebp + 4]
imul ecx, edx
add ecx, dword [esi + 0x34]
mov dword [esp + 0x68], edi
cmp ecx, eax
jg 0x46a906
mov ecx, eax
mov dword [edi + 0xcc], ecx
mov ecx, dword [esp + 0x44]
mov eax, dword [ebp + 8]
inc ecx
imul ecx, dword [esi + 0x38]
add ecx, dword [esi + 0x30]
cmp ecx, eax
jge 0x46a921
mov eax, ecx
mov dword [edi + 0xd0], eax
mov ecx, dword [ebp + 0xc]
lea eax, [edx + 1]
imul eax, dword [esi + 0x3c]
add eax, dword [esi + 0x34]
cmp eax, ecx
jl 0x46a93a
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 edx, edx
add esp, 8
mov dword [edi + 0xc4], eax
cmp eax, edx
je 0x46ae22
mov dword [esp + 0x14], edx
cmp dword [edi + 0xc0], edx
jle 0x46ab9f
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], edx
jmp 0x46a994
mov eax, dword [esp + 0x3c]
mov esi, dword [edi + 0xc4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + ecx]
add esi, dword [esp + 0x34]
mov ebx, dword [ebx + 0x15d0]
add ebx, dword [esp + 0x38]
mov dword [esi], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + eax + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 4]
mov dword [esi + 8], eax
shl eax, 4
push eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
je 0x46ae3f
mov ecx, dword [esi]
mov eax, dword [edi + 0xc8]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
mov ebp, dword [esi + 4]
mov edx, dword [edi + 0xcc]
mov dword [esp + 0x4c], eax
lea eax, [edx + ebp - 1]
cdq
idiv ebp
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0xd0]
lea eax, [ecx + eax - 1]
cdq
idiv ecx
mov ecx, dword [edi + 0xd4]
mov dword [esp + 0x54], eax
lea eax, [ecx + ebp - 1]
cdq
idiv ebp
mov dword [esp + 0x58], eax
mov eax, dword [esi + 8]
cmp eax, dword [esp + 0x1c]
jle 0x46aa35
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp eax, ecx
jle 0x46ab6a
lea eax, [ebx + 0x3b0]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
jmp 0x46aa5f
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov edi, dword [esi + 0xc]
add edi, dword [esp + 0x30]
test byte [ebx], 1
mov dword [esp + 0x24], edi
je 0x46aa7e
mov edx, dword [eax - 0x84]
mov dword [edi], edx
mov eax, dword [eax]
mov dword [edi + 4], eax
jmp 0x46aa8b
mov dword [edi], 0xf
mov dword [edi + 4], 0xf
mov ecx, dword [esi + 8]
sub ecx, dword [esp + 0x28]
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 + 0x24]
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 0x46aaf8
xor ebp, ebp
jmp 0x46ab1d
mov ecx, dword [esp + 0x5c]
mov ebx, 1
shl ebx, cl
mov ecx, dword [esp + 0x24]
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 + 0x24]
mov dword [esi + 8], ebp
cmp eax, ebx
jne 0x46ab2c
xor edi, edi
jmp 0x46ab34
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 + 0x20]
jle 0x46ab46
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x44]
add dword [esp + 0x2c], 4
add dword [esp + 0x30], 0x10
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [edx + 8]
jl 0x46aa53
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x14]
add dword [esp + 0x34], 0x10
add dword [esp + 0x38], 0x434
add dword [esp + 0x3c], 0x30
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x70]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [edi + 0xc0]
jl 0x46a990
mov esi, dword [esp + 0x74]
xor edx, edx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x14], 1
mov dword [edi + 0x10], ecx
mov eax, dword [ebp + 0x10]
imul eax, ecx
mov dword [edi + 0xc], eax
imul eax, dword [esp + 0x1c]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edx
cmp dword [eax + 0xc0], edx
jle 0x46ac99
mov dword [esp + 0x38], edx
jmp 0x46abe0
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0xc4]
add esi, dword [esp + 0x38]
xor ebp, ebp
cmp dword [esi + 8], ebp
jle 0x46ac6d
mov dword [esp + 0x3c], ebp
lea esp, [esp]
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x3c]
mov edx, ebx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub edx, ebp
lea ecx, [edx + ecx - 1]
sub eax, ebp
mov edx, 1
shl edx, cl
lea ecx, [eax + ebx - 1]
mov ebx, dword [esp + 0x10]
mov eax, 1
imul edx, dword [esi]
shl eax, cl
mov ecx, dword [ebx + 0xe0]
imul eax, dword [esi + 4]
test ecx, ecx
je 0x46ac46
cmp ecx, edx
jge 0x46ac46
mov edx, ecx
mov dword [edi + 0xe0], edx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x46ac5c
cmp ecx, eax
jge 0x46ac5c
mov eax, ecx
add dword [esp + 0x3c], 0x10
inc ebp
mov dword [edi + 0xe4], eax
cmp ebp, dword [esi + 8]
jl 0x46ac00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add dword [esp + 0x38], 0x10
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [ecx + 0xc0]
jl 0x46abe0
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
xor edx, edx
mov ecx, dword [esp + 0x18]
cmp ecx, edx
jne 0x46acce
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0xc]
imul edx, dword [eax + 8]
push 2
push edx
call sub.MSVCRT.dll_calloc
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ecx + 4], eax
test eax, eax
je 0x46ae60
mov ecx, dword [esp + 0x18]
xor edx, edx
jmp 0x46acd7
mov eax, dword [edi - 0xe4]
mov dword [edi + 4], eax
cmp dword [ebx + 0x1a8], edx
je 0x46ad69
cmp dword [esi], edx
jne 0x46acee
cmp dword [esp + 0x7c], 1
jne 0x46ad69
mov eax, ecx
imul eax, eax, 0x94
mov edx, dword [eax + ebx + 0x1b0]
add eax, ebx
mov dword [eax + 0x1f8], edx
mov ebp, dword [eax + 0x1b4]
lea edx, [ecx + 3]
imul edx, edx, 0x94
mov edx, dword [edx + ebx]
mov dword [eax + 0x208], edx
mov edx, dword [eax + 0x1ac]
mov dword [eax + 0x1f4], edx
mov edx, dword [eax + 0x1b8]
mov dword [eax + 0x204], edx
mov edx, dword [eax + 0x1cc]
mov dword [eax + 0x1d0], edx
xor edx, edx
mov dword [eax + 0x200], ebp
cmp ecx, edx
jle 0x46adaa
mov ecx, dword [eax + 0x16c]
cmp ebp, ecx
setle dl
dec edx
and ecx, edx
mov dword [eax + 0x1f0], ecx
mov ecx, dword [esp + 0x18]
xor edx, edx
jmp 0x46adaa
mov eax, ecx
imul eax, eax, 0x94
add eax, ebx
mov dword [eax + 0x1f8], edx
mov ebp, dword [ebp + 0x10]
mov dword [eax + 0x208], ebp
mov ebp, dword [esp + 0x1c]
mov dword [eax + 0x1f4], edx
mov dword [eax + 0x204], ebp
mov dword [eax + 0x1f0], edx
mov ebp, dword [ebx + 0xc]
mov dword [eax + 0x200], ebp
mov ebp, dword [ebx + 8]
mov dword [eax + 0x1d0], ebp
mov dword [eax + 0x1fc], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x20c], edx
mov edx, dword [edi + 0xc8]
mov dword [eax + 0x210], edx
mov edx, dword [edi + 0xd0]
mov dword [eax + 0x214], edx
mov edx, dword [edi + 0xcc]
mov dword [eax + 0x218], edx
mov edx, dword [edi + 0xd4]
mov dword [eax + 0x21c], edx
mov edx, dword [edi + 0xe0]
mov dword [eax + 0x220], edx
mov edx, dword [edi + 0xe4]
mov dword [eax + 0x224], edx
mov eax, dword [ebx + 0x1a4]
inc ecx
inc eax
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x46a8b4
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
push ecx
push esi
push edx
call fcn.00469cd0
add esp, 0xc
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.00469cd0
add esp, 0xc
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x78]
push eax
push esi
push ecx
call fcn.00469cd0
add esp, 0xc
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x5c
ret