Function at 0x1012d230
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.10055f30
add esp, 4
cmp eax, 0x65
jne 0x1012d263
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 0x1012d4c3
mov esi, dword [ebx]
mov dword [esp + 0x1c], 0
test esi, esi
jne 0x1012d28a
mov ecx, 0x10162818
call fcn.1004e6e0
mov edi, eax
mov ebp, edx
jmp 0x1012d2fe
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012d29d
push eax
call dword [0x10178a88]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x1012d2af
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x1012d2c7
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002b6b0
mov ecx, 0x10162818
call fcn.1004e6e0
mov ecx, dword [esi]
mov ebp, edx
mov edx, dword [esi + 0x24]
mov edi, eax
cmp byte [ecx + 0x57], 0
jne 0x1012d2e3
test edx, edx
jne 0x1012d2e3
xor eax, eax
jmp 0x1012d2e8
call fcn.10028630
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012d2fe
push eax
call dword [0x10178a90]
add esp, 4
mov esi, dword [ebx]
mov dword [ebx + 0xc], ebp
mov ebp, 1
mov dword [ebx + 8], edi
test esi, esi
je 0x1012d34a
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012d322
push eax
call dword [0x10178a88]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x1012d337
cmp bp, word [esi + 0x90]
jae 0x1012d337
add ecx, 0x28
jmp 0x1012d34f
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002b6b0
mov ecx, 0x10162818
movzx eax, word [ecx + 0x10]
test al, 2
je 0x1012d366
cmp byte [ecx + 0x12], 1
jne 0x1012d366
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x14], edi
jmp 0x1012d39f
test al, 0x10
je 0x1012d386
mov edx, dword [ecx + 0xc]
test eax, 0x400
je 0x1012d37e
mov edi, dword [ecx]
add edi, edx
mov dword [esp + 0x14], edi
jmp 0x1012d39f
mov edi, edx
mov dword [esp + 0x14], edi
jmp 0x1012d39f
test al, 1
je 0x1012d392
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x1012d39f
mov dl, 1
call fcn.1004fae0
mov edi, eax
mov dword [esp + 0x14], eax
test esi, esi
je 0x1012d3d1
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x1012d3b6
test edx, edx
jne 0x1012d3b6
xor eax, eax
jmp 0x1012d3bb
call fcn.10028630
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012d3d1
push eax
call dword [0x10178a90]
add esp, 4
mov esi, dword [ebx]
test esi, esi
jne 0x1012d3e5
push 0x10162818
call fcn.10055100
mov ebp, eax
jmp 0x1012d45f
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012d3f8
push eax
call dword [0x10178a88]
add esp, 4
mov eax, dword [esi + 0x78]
test eax, eax
je 0x1012d40d
cmp bp, word [esi + 0x90]
jae 0x1012d40d
add eax, 0x28
jmp 0x1012d425
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.1002b6b0
mov eax, 0x10162818
push eax
call fcn.10055100
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 0x1012d447
test edx, edx
jne 0x1012d447
xor eax, eax
jmp 0x1012d44c
call fcn.10028630
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1012d466
push eax
call dword [0x10178a90]
mov dword [esp + 0x1c], ebp
add esp, 4
mov esi, ebp
test edi, edi
jle 0x1012d4b9
mov eax, dword [ebx + 0x14]
xor edi, edi
dec eax
test eax, eax
jle 0x1012d4ac
lea ebp, [ebx + 0x18]
nop dword [eax]
lea edx, [esp + 0x20]
mov ecx, esi
call fcn.10137c20
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 0x1012d480
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