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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xffffffffffffffff
xor eax, eax
mov dword [ebp - 0xc], edx
push eax
mov edi, ecx
xor edx, edx
push eax
push eax
mov ebx, dword [edi + 0x44]
call fcn.100fa14d
mov esi, eax
cmp esi, 0xffffffff
je 0x10105fc1
test esi, esi
je 0x10105fc1
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 0x1010616a
mov eax, dword [edi + 0x80]
test eax, eax
je 0x1010616a
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x1010616a
push 0xffffffffffffffff
push ecx
xor esi, esi
mov ecx, edi
push esi
push eax
call fcn.100fa14d
cmp dword [edi + 0x3c], esi
je 0x10106004
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.100fa58f
cmp eax, 0xffffffff
je 0x10106031
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 0x1010616a
mov ecx, edi
call fcn.100fa58f
cmp dword [edi + 0x54], esi
jne 0x1010607f
mov eax, dword [edi + 0x18]
test dword [eax + 0xc], 0x100000
je 0x1010607f
mov eax, dword [edi + 0x24]
cmp dword [eax + 0x12c], esi
je 0x1010607f
cmp dword [eax + 0x130], esi
je 0x1010607f
mov ecx, edi
call fcn.100dad66
test eax, eax
jne 0x1010607f
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 0x1010616a
push 0x40
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi + 0xc], edi
xor edx, edx
push 0x40
pop eax
mov word [esi], ax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
xor eax, eax
mov word [esi + 0x22], ax
mov eax, dword [0x101a5fbc]
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 dword [esi + 0x2c], 0x603
mov eax, dword [edi + 0x24]
cmp dword [eax + 0x90], edx
je 0x101060ea
mov dword [esi + 0x24], edx
movzx eax, word [esi + 2]
mov dword [esi + 0x24], 0xfa52
mov ecx, eax
cmp dword [edi + 0x60], edx
je 0x10106106
or eax, 1
mov word [esi + 2], ax
movzx ecx, ax
or ecx, 4
mov word [esi + 2], cx
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov dword [esi + 0x10], eax
mov eax, 0x100fcf00
cmp dword [edi + 0x54], edx
je 0x10106128
mov eax, 0x100fac10
push edi
mov ecx, eax
mov dword [ebp - 8], eax
mov dword [edi + 0x4f4], edx
mov dword [edi + 0x4f8], edx
mov dword [edi + 0x4fc], edx
mov dword [edi + 0x500], edx
call dword [0x101a77c4]
call dword [ebp - 8]
test eax, eax
je 0x1010616a
mov eax, dword [edi + 0x4f4]
test eax, eax
jne 0x1010617d
cmp dword [ebp - 0xc], 3
jne 0x1010616a
or dword [edi + 0x528], 4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
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 0x1010616a
xor ebx, ebx
cmp dword [edi + 0x500], ebx
je 0x1010616a
test eax, eax
je 0x1010616a
mov ecx, dword [edi + 0x4f4]
test ecx, ecx
je 0x101061f8
add edx, 8
mov dword [edx], eax
lea edx, [edx + 0x34]
mov dword [eax], 0x2c
add eax, 0x2c
sub ecx, 1
jne 0x101061df
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 - 8]
mov ecx, ebx
push edi
call dword [0x101a77c4]
call ebx
neg eax
sbb eax, eax
and eax, esi
jmp 0x1010616c