Function at 0x10012ba0
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 0x10012bf4
sub ecx, ebx
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x10012c0e
lea eax, [edx - 1]
add eax, ebx
cmp eax, edi
jbe 0x10012c08
mov ecx, edi
sub ecx, ebx
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x10012c0e
mov ecx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], 0
test ecx, ecx
jle 0x10012dd1
mov edi, ebx
cmp dword [esp + 0x14], 0
jne 0x10012dd1
mov eax, dword [esp + 0x24]
cmp edi, dword [eax + 0x14]
je 0x10012c74
mov ecx, dword [esi + 0x38]
mov edx, edi
call fcn.1000c710
test eax, eax
je 0x10012c70
mov edx, edi
mov ecx, esi
call fcn.10012450
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x10012cce
test byte [ecx + 0x18], 4
mov edx, 1
mov eax, dword [esp + 0x10]
cmovne eax, edx
mov dword [esp + 0x10], eax
call fcn.100124c0
jmp 0x10012cce
mov ecx, dword [esp + 0xc]
mov eax, dword [0x10100f7c]
cdq
idiv dword [esi + 0x98]
inc eax
cmp edi, eax
je 0x10012cd2
lea eax, [esp + 0x1c]
mov edx, edi
push 0
push eax
mov ecx, esi
call fcn.10011f10
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10012cce
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.10012890
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.100124c0
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 0x10012c20
cmp dword [esp + 0x14], 0
jne 0x10012dd1
cmp dword [esp + 0x10], 0
je 0x10012dd1
nop word [eax + eax]
mov eax, dword [esi + 0xcc]
push 0
push ebx
push dword [eax + 0x28]
call dword [0x10100b54]
mov esi, dword [esi + 0xcc]
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10012dc1
mov eax, dword [ecx + 4]
cmp dword [eax], 0
jne 0x10012d3c
push ecx
mov edx, ebx
mov ecx, esi
call fcn.1000ce70
add esp, 4
jmp 0x10012d5f
movzx ecx, word [eax + 0x1a]
xor edi, edi
mov edx, ecx
cmp di, cx
jne 0x10012d50
inc dword [esi + 0xc]
movzx edx, word [eax + 0x1a]
lea ecx, [edx + 1]
mov word [eax + 0x1a], cx
cmp ebx, 1
jne 0x10012d5f
mov dword [esi + 0x2c], eax
test eax, eax
je 0x10012dc1
or word [eax + 0x18], 4
test byte [eax + 0x18], 0x40
mov edx, dword [eax + 0x10]
mov dword [esp + 0x24], edx
je 0x10012db1
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.100dfcd0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10012db8
mov ecx, eax
call fcn.1000cf30
mov ecx, dword [esp + 0x24]
call fcn.10011e90
mov esi, dword [esp + 0x18]
inc ebx
sub dword [esp + 0xc], 1
jne 0x10012d00
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