Function at 0x10012c80
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 0x10012cd4
sub ecx, ebx
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x10012cee
lea eax, [edx - 1]
add eax, ebx
cmp eax, edi
jbe 0x10012ce8
mov ecx, edi
sub ecx, ebx
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x10012cee
mov ecx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], 0
test ecx, ecx
jle 0x10012eb1
mov edi, ebx
cmp dword [esp + 0x14], 0
jne 0x10012eb1
mov eax, dword [esp + 0x24]
cmp edi, dword [eax + 0x14]
je 0x10012d54
mov ecx, dword [esi + 0x38]
mov edx, edi
call fcn.1000c720
test eax, eax
je 0x10012d50
mov edx, edi
mov ecx, esi
call fcn.10012520
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x10012dae
test byte [ecx + 0x18], 4
mov edx, 1
mov eax, dword [esp + 0x10]
cmovne eax, edx
mov dword [esp + 0x10], eax
call fcn.10012590
jmp 0x10012dae
mov ecx, dword [esp + 0xc]
mov eax, dword [0x10103094]
cdq
idiv dword [esi + 0x98]
inc eax
cmp edi, eax
je 0x10012db2
lea eax, [esp + 0x1c]
mov edx, edi
push 0
push eax
mov ecx, esi
call fcn.10011fe0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10012dae
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.10012970
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.10012590
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 0x10012d00
cmp dword [esp + 0x14], 0
jne 0x10012eb1
cmp dword [esp + 0x10], 0
je 0x10012eb1
nop word [eax + eax]
mov eax, dword [esi + 0xcc]
push 0
push ebx
push dword [eax + 0x28]
call dword [0x10102c6c]
mov esi, dword [esi + 0xcc]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10012ea1
mov eax, dword [ecx + 4]
cmp dword [eax], 0
jne 0x10012e1c
push ecx
mov edx, ebx
mov ecx, esi
call fcn.1000ced0
add esp, 4
jmp 0x10012e3f
movzx ecx, word [eax + 0x1a]
xor edi, edi
mov edx, ecx
cmp di, cx
jne 0x10012e30
inc dword [esi + 0xc]
movzx edx, word [eax + 0x1a]
lea ecx, [edx + 1]
mov word [eax + 0x1a], cx
cmp ebx, 1
jne 0x10012e3f
mov dword [esi + 0x2c], eax
test eax, eax
je 0x10012ea1
or word [eax + 0x18], 4
test byte [eax + 0x18], 0x40
mov edx, dword [eax + 0x10]
mov dword [esp + 0x24], edx
je 0x10012e91
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.100e1450
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10012e98
mov ecx, eax
call fcn.1000cf90
mov ecx, dword [esp + 0x24]
call fcn.10011f60
mov esi, dword [esp + 0x18]
inc ebx
sub dword [esp + 0xc], 1
jne 0x10012de0
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