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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ebx, dword [ebp + 0x38]
mov dword [esp + 0x24], ebp
push dword [ebx]
call fcn.10054c20
add esp, 4
cmp eax, 0x65
jne 0x1012ac53
or dword [ebp + 0x3c], 3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x64
jne 0x1012aeb3
mov esi, dword [ebx]
mov dword [esp + 0x1c], 0
test esi, esi
jne 0x1012ac7a
mov ecx, 0x10161a88
call fcn.1004d340
mov edi, eax
mov ebp, edx
jmp 0x1012acee
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012ac8d
push eax
call dword [0x10177b98]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x1012ac9f
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x1012acb7
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002a360
mov ecx, 0x10161a88
call fcn.1004d340
mov ecx, dword [esi]
mov ebp, edx
mov edx, dword [esi + 0x24]
mov edi, eax
cmp byte [ecx + 0x57], 0
jne 0x1012acd3
test edx, edx
jne 0x1012acd3
xor eax, eax
jmp 0x1012acd8
call fcn.100272e0
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012acee
push eax
call dword [0x10177ba0]
add esp, 4
mov esi, dword [ebx]
mov dword [ebx + 0xc], ebp
mov ebp, 1
mov dword [ebx + 8], edi
test esi, esi
je 0x1012ad3a
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012ad12
push eax
call dword [0x10177b98]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x1012ad27
cmp bp, word [esi + 0x90]
jae 0x1012ad27
add ecx, 0x28
jmp 0x1012ad3f
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002a360
mov ecx, 0x10161a88
movzx eax, word [ecx + 0x10]
test al, 2
je 0x1012ad56
cmp byte [ecx + 0x12], 1
jne 0x1012ad56
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x14], edi
jmp 0x1012ad8f
test al, 0x10
je 0x1012ad76
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x1012ad6e
mov edi, dword [ecx]
add edi, edx
mov dword [esp + 0x14], edi
jmp 0x1012ad8f
mov edi, edx
mov dword [esp + 0x14], edi
jmp 0x1012ad8f
test al, 1
je 0x1012ad82
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x1012ad8f
mov dl, 1
call fcn.1004e750
mov edi, eax
mov dword [esp + 0x14], eax
test esi, esi
je 0x1012adc1
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x1012ada6
test edx, edx
jne 0x1012ada6
xor eax, eax
jmp 0x1012adab
call fcn.100272e0
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012adc1
push eax
call dword [0x10177ba0]
add esp, 4
mov esi, dword [ebx]
test esi, esi
jne 0x1012add5
push 0x10161a88
call fcn.10053df0
mov ebp, eax
jmp 0x1012ae4f
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012ade8
push eax
call dword [0x10177b98]
add esp, 4
mov eax, dword [esi + 0x78]
test eax, eax
je 0x1012adfd
cmp bp, word [esi + 0x90]
jae 0x1012adfd
add eax, 0x28
jmp 0x1012ae15
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002a360
mov eax, 0x10161a88
push eax
call fcn.10053df0
mov ecx, dword [esi]
add esp, 4
mov edx, dword [esi + 0x24]
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp byte [ecx + 0x57], 0
jne 0x1012ae37
test edx, edx
jne 0x1012ae37
xor eax, eax
jmp 0x1012ae3c
call fcn.100272e0
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012ae56
push eax
call dword [0x10177ba0]
mov dword [esp + 0x1c], ebp
add esp, 4
mov esi, ebp
test edi, edi
jle 0x1012aea9
mov eax, dword [ebx + 0x14]
xor edi, edi
dec eax
test eax, eax
jle 0x1012ae9c
lea ebp, [ebx + 0x18]
nop dword [eax]
lea edx, [esp + 0x20]
mov ecx, esi
call fcn.10135610
add esi, eax
lea ebp, [ebp + 4]
mov eax, dword [esp + 0x1c]
inc edi
add eax, dword [esp + 0x20]
mov dword [ebp - 4], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x14]
dec eax
cmp edi, eax
jl 0x1012ae70
mov ebp, dword [esp + 0x18]
sub ebp, esi
add ebp, dword [esp + 0x14]
mov dword [ebx + edi*4 + 0x18], ebp
mov dword [ebx + 0x10], esi
mov ecx, dword [esp + 0x24]
or dword [ecx + 0x3c], 0x4e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret