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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ecx + 0x10]
xor eax, eax
mov dword [esp + 0xc], eax
xor edx, edx
mov dword [esp + 0x20], ecx
push edi
mov eax, dword [esi + 0x94]
div dword [esi + 0x98]
or byte [esi + 0x14], 4
mov ecx, dword [ecx + 0x14]
mov edx, eax
mov edi, dword [esi + 0x18]
neg eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], esi
lea ebx, [ecx - 1]
and ebx, eax
inc ebx
cmp ecx, edi
jbe 0x10012aa4
sub ecx, ebx
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x10012abe
lea eax, [edx - 1]
add eax, ebx
cmp eax, edi
jbe 0x10012ab8
mov ecx, edi
sub ecx, ebx
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x10012abe
mov ecx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], 0
test ecx, ecx
jle 0x10012c81
mov edi, ebx
cmp dword [esp + 0x14], 0
jne 0x10012c81
mov eax, dword [esp + 0x24]
cmp edi, dword [eax + 0x14]
je 0x10012b24
mov ecx, dword [esi + 0x38]
mov edx, edi
call fcn.1000c5c0
test eax, eax
je 0x10012b20
mov edx, edi
mov ecx, esi
call fcn.10012300
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x10012b7e
test byte [ecx + 0x18], 4
mov edx, 1
mov eax, dword [esp + 0x10]
cmovne eax, edx
mov dword [esp + 0x10], eax
call fcn.10012370
jmp 0x10012b7e
mov ecx, dword [esp + 0xc]
mov eax, dword [0x100fcf7c]
cdq
idiv dword [esi + 0x98]
inc eax
cmp edi, eax
je 0x10012b82
lea eax, [esp + 0x1c]
mov edx, edi
push 0
push eax
mov ecx, esi
call fcn.10011dc0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10012b7e
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.10012740
test byte [esi + 0x18], 4
mov ecx, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cmovne eax, ecx
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.10012370
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
inc edi
inc eax
mov dword [esp + 0x20], eax
cmp eax, ecx
jl 0x10012ad0
cmp dword [esp + 0x14], 0
jne 0x10012c81
cmp dword [esp + 0x10], 0
je 0x10012c81
nop word [eax + eax]
mov eax, dword [esi + 0xcc]
push 0
push ebx
push dword [eax + 0x28]
call dword [0x100fcb54]
mov esi, dword [esi + 0xcc]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10012c71
mov eax, dword [ecx + 4]
cmp dword [eax], 0
jne 0x10012bec
push ecx
mov edx, ebx
mov ecx, esi
call fcn.1000cd20
add esp, 4
jmp 0x10012c0f
movzx ecx, word [eax + 0x1a]
xor edi, edi
mov edx, ecx
cmp di, cx
jne 0x10012c00
inc dword [esi + 0xc]
movzx edx, word [eax + 0x1a]
lea ecx, [edx + 1]
mov word [eax + 0x1a], cx
cmp ebx, 1
jne 0x10012c0f
mov dword [esi + 0x2c], eax
test eax, eax
je 0x10012c71
or word [eax + 0x18], 4
test byte [eax + 0x18], 0x40
mov edx, dword [eax + 0x10]
mov dword [esp + 0x24], edx
je 0x10012c61
dec dword [edx + 0x78]
mov ecx, dword [edx + 0x88]
mov dword [eax + 0xc], ecx
mov esi, dword [edx + 0x3c]
mov dword [edx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x14]
mov eax, dword [edx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.100dbe80
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10012c68
mov ecx, eax
call fcn.1000cde0
mov ecx, dword [esp + 0x24]
call fcn.10011d40
mov esi, dword [esp + 0x18]
inc ebx
sub dword [esp + 0xc], 1
jne 0x10012bb0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
and byte [eax + 0x14], 0xfb
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret