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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xa0
push esi
xor esi, esi
cmp dword [esp + 0xbc], esi
jne 0x10012181
mov edx, dword [esp + 0xb8]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0xb8]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0xbc]
push edi
push edx
push eax
push ecx
call fcn.100115c0
add esp, 0x20
pop esi
add esp, 0xa0
ret
mov ecx, dword [ecx]
mov eax, dword [ecx + 4]
imul eax, dword [ecx]
imul eax, edi
push ebx
push ebp
push eax
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ebp
jmp 0x100121a6
xor esi, esi
mov eax, 4
mov ecx, 2
mov edx, 8
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], edx
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov ebx, 1
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ebx
mov esi, dword [esp + ebp + 0x74]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], ecx
mov ecx, dword [edx]
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + ebp + 0x58]
mov dword [esp + 0x38], eax
mov edx, esi
sub edx, eax
mov eax, dword [ecx]
lea eax, [edx + eax - 1]
xor edx, edx
div esi
mov edx, dword [ecx + 4]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x34], esi
mov esi, dword [esp + ebp + 0x90]
mov dword [esp + 0x2c], esi
mov ebx, eax
mov eax, dword [esp + ebp + 0x3c]
sub edx, eax
lea eax, [edx + esi - 1]
xor edx, edx
div esi
mov dword [esp + 0x20], ebx
mov esi, eax
test ebx, ebx
je 0x100123b3
test esi, esi
je 0x100123b3
mov ebp, dword [ecx + 8]
mov eax, dword [esp + 0xbc]
imul ebp, ebx
mov ecx, dword [esp + 0xc0]
imul ebp, eax
mov edx, dword [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0xbc]
push esi
push ebx
push edi
add ebp, 7
push edx
sar ebp, 3
push eax
inc ebp
push ecx
imul ebp, esi
call fcn.100115c0
add esp, 0x20
test eax, eax
je 0x100123e0
test esi, esi
jle 0x1001238d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + edx + 0x3c]
mov dword [esp + 0x10], eax
mov eax, ebx
imul eax, edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], esi
lea ecx, [ecx]
test ebx, ebx
jle 0x1001237a
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax]
mov esi, dword [eax + 0xc]
mov edx, dword [esp + 0x20]
xor ebx, ebx
add esi, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
imul ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x38]
push edi
add ecx, ebx
imul ecx, edi
add ecx, dword [esp + 0x10]
push esi
push ecx
call sub.MSVCR90.dll_memcpy
add ebx, dword [esp + 0x40]
add esp, 0xc
add esi, edi
sub dword [esp + 0x1c], 1
jne 0x10012342
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add dword [esp + 0x10], edx
add dword [esp + 0x18], eax
sub dword [esp + 0x24], 1
jne 0x10012320
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add dword [esp + 0xb8], ebp
add esp, 4
sub dword [esp + 0xb8], ebp
mov ebp, dword [esp + 0x14]
add ebp, 4
cmp ebp, 0x1c
mov dword [esp + 0x14], ebp
jl 0x100121a4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xb0]
pop ebp
pop ebx
mov dword [ecx + 0xc], eax
mov eax, 1
pop esi
add esp, 0xa0
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0xa0
ret