Function at 0x1017e1a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102003bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x103b9004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x1017e1e7
lea eax, [ebx + 9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebx + 0x24], 1
mov dword [ebx + 0x30], 0
mov eax, dword [esi]
call dword [eax + 0x10]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x1017e218
lea ecx, [eax - 1]
cmp ecx, 0x7ffffffe
jbe 0x1017e238
mov byte [0], 0
xor ecx, ecx
mov dword [ebx + 0xc], ecx
test ecx, ecx
jne 0x1017e246
lea eax, [ecx + 5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ecx, eax
jmp 0x1017e21a
push dword [ebx + 0x10]
mov eax, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [eax + 0x1c]
test eax, eax
je 0x1017e382
mov esi, dword [ebp - 0x10]
mov edi, dword [ebx + 0x10]
add esi, 4
mov ebx, dword [ebx + 0xc]
mov ecx, esi
mov dword [ebp + 0xc], esi
push 0x60
mov eax, dword [esi]
call dword [eax]
mov dword [ebp - 0x10], eax
mov dword [eax], esi
mov esi, dword [ebp + 0x20]
mov ecx, eax
push esi
push 0
push edi
push ebx
push 0
push 0
mov dword [ebp - 4], 0
call fcn.10194950
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x1017e382
push esi
push ecx
mov ecx, eax
call fcn.10195670
mov ecx, dword [ebx + 0x2c]
mov esi, eax
cmp dword [ecx + 0x30], 3
jne 0x1017e309
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov dword [eax + 0x14], 0
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
call fcn.101948b0
mov dword [ebx + 0x2c], 0
test esi, esi
jne 0x1017e382
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x30]
mov dword [eax + 0x14], esi
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x1017e358
push ecx
call fcn.1017df30
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1017e369
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1017e393
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [ebx + 0xc], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c