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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0xffffffffffffffff
xor eax, eax
mov dword [ebp - 8], edx
push eax
mov edi, ecx
xor edx, edx
push eax
push eax
mov ebx, dword [edi + 0x44]
call fcn.10121729
mov esi, eax
cmp esi, 0xffffffff
je 0x1012e1dd
test esi, esi
je 0x1012e1dd
mov ecx, esi
mov dword [edi + 0x78], esi
shl ecx, 7
push ecx
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
add esi, esi
mov dword [edi + 0x7c], eax
push esi
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push 8
push ebx
mov dword [edi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0x84], eax
mov edx, dword [edi + 0x7c]
test edx, edx
je 0x1012e36e
mov eax, dword [edi + 0x80]
test eax, eax
je 0x1012e36e
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x1012e36e
push 0xffffffffffffffff
push ecx
xor esi, esi
mov ecx, edi
push esi
push eax
call fcn.10121729
cmp dword [edi + 0x3c], esi
je 0x1012e220
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edx, edx
mov dword [edi + 0x3c], esi
mov ecx, edi
mov dword [edi + 0x40], esi
call fcn.10121b58
cmp eax, 0xffffffff
je 0x1012e24d
mov dword [edi + 0x88], eax
imul eax, eax, 0x30
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0x8c], eax
mov edx, dword [edi + 0x8c]
test edx, edx
je 0x1012e36e
mov ecx, edi
call fcn.10121b58
cmp dword [edi + 0x54], esi
jne 0x1012e29b
mov eax, dword [edi + 0x18]
test dword [eax + 0xc], 0x100000
je 0x1012e29b
mov eax, dword [edi + 0x24]
cmp dword [eax + 0x12c], esi
je 0x1012e29b
cmp dword [eax + 0x130], esi
je 0x1012e29b
mov ecx, edi
call fcn.10101a04
test eax, eax
jne 0x1012e29b
mov dword [edi + 0x524], 1
push 0x40
pop eax
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1012e36e
push 0x40
push 0
push esi
call sub.msvcrt.dll_memset
movzx ecx, word [esi + 2]
add esp, 0xc
mov dword [esi + 0xc], edi
xor edx, edx
push 0x40
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
mov dword [esi + 0x1c], eax
mov eax, dword [0x101d6f40]
mov dword [esi + 4], eax
mov dword [esi + 8], 0xfa
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 4]
mov dword [esi + 0x28], eax
mov eax, ecx
mov dword [esi + 0x2c], 0x603
mov dword [esi + 0x24], 0xfa52
cmp dword [edi + 0x60], edx
je 0x1012e30a
or ecx, 1
movzx eax, cx
or eax, 4
mov word [esi + 2], ax
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x10], eax
mov eax, 0x10124680
cmp dword [edi + 0x54], edx
je 0x1012e32c
mov eax, 0x101221d0
push edi
mov ecx, eax
mov dword [ebp - 4], eax
mov dword [edi + 0x4f4], edx
mov dword [edi + 0x4f8], edx
mov dword [edi + 0x4fc], edx
mov dword [edi + 0x500], edx
call dword [0x101d880c]
call dword [ebp - 4]
test eax, eax
je 0x1012e36e
mov eax, dword [edi + 0x4f4]
test eax, eax
jne 0x1012e375
cmp dword [ebp - 8], 3
jne 0x1012e36e
or dword [edi + 0x528], 4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
imul eax, eax, 0x34
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0x4f8], eax
mov eax, dword [edi + 0x4fc]
shl eax, 5
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [edi + 0x500], eax
imul eax, dword [edi + 0x4f4], 0x2c
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [edi + 0x4f8]
test edx, edx
je 0x1012e36e
xor ebx, ebx
cmp dword [edi + 0x500], ebx
je 0x1012e36e
test eax, eax
je 0x1012e36e
mov ecx, dword [edi + 0x4f4]
test ecx, ecx
je 0x1012e3f0
add edx, 8
mov dword [edx], eax
lea edx, [edx + 0x34]
mov dword [eax], 0x2c
add eax, 0x2c
sub ecx, 1
jne 0x1012e3d7
mov edx, dword [edi + 0x4f8]
mov dword [edi + 0x4d4], edx
mov dword [esi + 0x18], edx
mov ax, word [edi + 0x4f4]
mov word [esi + 0x20], ax
mov dword [edi + 0x4fc], ebx
mov dword [edi + 0x4f4], ebx
mov ebx, dword [ebp - 4]
mov ecx, ebx
push edi
call dword [0x101d880c]
call ebx
test eax, eax
je 0x1012e36e
mov eax, esi
jmp 0x1012e370