Function at 0x10012bd0
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 0x10012c24
sub ecx, ebx
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x10012c3e
lea eax, [edx - 1]
add eax, ebx
cmp eax, edi
jbe 0x10012c38
mov ecx, edi
sub ecx, ebx
inc ecx
mov dword [esp + 0xc], ecx
jmp 0x10012c3e
mov ecx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], 0
test ecx, ecx
jle 0x10012e01
mov edi, ebx
cmp dword [esp + 0x14], 0
jne 0x10012e01
mov eax, dword [esp + 0x24]
cmp edi, dword [eax + 0x14]
je 0x10012ca4
mov ecx, dword [esi + 0x38]
mov edx, edi
call fcn.1000c740
test eax, eax
je 0x10012ca0
mov edx, edi
mov ecx, esi
call fcn.10012480
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x10012cfe
test byte [ecx + 0x18], 4
mov edx, 1
mov eax, dword [esp + 0x10]
cmovne eax, edx
mov dword [esp + 0x10], eax
call fcn.100124f0
jmp 0x10012cfe
mov ecx, dword [esp + 0xc]
mov eax, dword [0x10100f7c]
cdq
idiv dword [esi + 0x98]
inc eax
cmp edi, eax
je 0x10012d02
lea eax, [esp + 0x1c]
mov edx, edi
push 0
push eax
mov ecx, esi
call fcn.10011f40
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10012cfe
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.100128c0
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.100124f0
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 0x10012c50
cmp dword [esp + 0x14], 0
jne 0x10012e01
cmp dword [esp + 0x10], 0
je 0x10012e01
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 0x10012df1
mov eax, dword [ecx + 4]
cmp dword [eax], 0
jne 0x10012d6c
push ecx
mov edx, ebx
mov ecx, esi
call fcn.1000cea0
add esp, 4
jmp 0x10012d8f
movzx ecx, word [eax + 0x1a]
xor edi, edi
mov edx, ecx
cmp di, cx
jne 0x10012d80
inc dword [esi + 0xc]
movzx edx, word [eax + 0x1a]
lea ecx, [edx + 1]
mov word [eax + 0x1a], cx
cmp ebx, 1
jne 0x10012d8f
mov dword [esi + 0x2c], eax
test eax, eax
je 0x10012df1
or word [eax + 0x18], 4
test byte [eax + 0x18], 0x40
mov edx, dword [eax + 0x10]
mov dword [esp + 0x24], edx
je 0x10012de1
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.100dfbb0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10012de8
mov ecx, eax
call fcn.1000cf60
mov ecx, dword [esp + 0x24]
call fcn.10011ec0
mov esi, dword [esp + 0x18]
inc ebx
sub dword [esp + 0xc], 1
jne 0x10012d30
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