Function at 0x1004f720
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016184d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
push esi
push edi
mov eax, dword [0x101ed004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov esi, dword [ebx + 8]
push 0xa8
mov dword [ebp - 0x18], esi
call fcn.101427a2
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
push 0xa8
push 0
push edi
call fcn.10143f10
add esp, 0xc
mov ecx, edi
push dword [esi]
call fcn.100163a0
mov esi, dword [ebx + 0xc]
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push dword [esi + 4]
push dword [esi]
call fcn.1004c870
mov dword [edi + 8], eax
add esp, 8
mov eax, dword [edi + 0x30]
mov dword [edi + 0xc], edx
test eax, eax
je 0x1004f7cc
push 0x18
push eax
call fcn.10142794
add esp, 8
mov dword [edi + 0x30], 0
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.1004ee30
mov dword [edi + 0x24], eax
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], 0x101d1eb4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [eax + 4]
cmp ecx, 1
jg 0x1004f808
push eax
lea ecx, [ebp - 0x30]
call fcn.10010220
jmp 0x1004f81b
mov eax, dword [eax]
push 1
lea eax, [eax + ecx*2]
add eax, 0xfffffffe
lea ecx, [ebp - 0x30]
push eax
call fcn.10010180
mov edi, dword [ebp - 0x30]
mov ecx, 0x101d2088
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004f84b
test dx, dx
je 0x1004f847
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004f84b
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004f825
xor eax, eax
jmp 0x1004f850
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004f865
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x1004f865
mov byte [ebp - 0x11], 1
cmp dword [esi + 0x1c], eax
je 0x1004f869
mov byte [ebp - 0x11], 0
test edi, edi
je 0x1004f87e
cmp edi, 0x101d1eb4
je 0x1004f87e
push edi
call fcn.10146720
add esp, 4
cmp byte [ebp - 0x11], 0
je 0x1004f88e
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x24], 0x10
push 0x18
call fcn.101427a2
xorps xmm0, xmm0
mov dword [ebp - 0x24], eax
add esp, 4
movups xmmword [eax], xmm0
lea edi, [eax + 4]
movq qword [eax + 0x10], xmm0
mov dword [eax], vtable.CArkUnZpaq::FileInfoExtraData.0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [eax + 0x14], 0
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1004f8f2
cmp eax, dword [edi + 8]
jbe 0x1004f8ef
push eax
mov ecx, edi
call fcn.10008a90
test al, al
je 0x1004f8f2
mov eax, dword [ebp - 0x28]
mov dword [edi + 4], eax
xor edx, edx
cmp dword [esi + 0x1c], edx
jbe 0x1004f911
nop dword [eax]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + edx*4]
mov eax, dword [edi]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, dword [esi + 0x1c]
jb 0x1004f900
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x10]
mov edi, dword [ebp - 0x20]
push dword [ebp - 0x18]
mov dword [ecx + 0x14], eax
add edi, 0x864
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xa0], ecx
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.10050db0
mov esi, dword [ebp - 0x34]
cmp byte [esi + 0xd], 0
jne 0x1004f9a6
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x10]
mov eax, dword [eax]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004f976
test dx, dx
je 0x1004f972
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004f976
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004f950
xor eax, eax
jmp 0x1004f97b
sbb eax, eax
or eax, 1
test eax, eax
js 0x1004f9a6
cmp esi, dword [edi]
je 0x1004f9a6
mov esi, dword [esi + 0x1c]
mov ecx, esi
call fcn.1001d4f0
test esi, esi
je 0x1004f9a6
mov ecx, esi
call fcn.1001d4f0
push 0xa8
push esi
call fcn.10142794
add esp, 8
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.10050db0
mov esi, dword [ebp - 0x34]
cmp byte [esi + 0xd], 0
jne 0x1004f9f4
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 0x10]
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004f9eb
test dx, dx
je 0x1004f9e7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004f9eb
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004f9c5
xor eax, eax
jmp 0x1004f9f0
sbb eax, eax
or eax, 1
test eax, eax
jns 0x1004fa72
cmp dword [edi + 4], 0x7ffffff
je 0x1004fa97
mov eax, dword [edi]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x28], 0
call fcn.101427a2
mov edi, eax
add esp, 4
push dword [ebp - 0x18]
lea ecx, [edi + 0x10]
mov dword [edi + 0x10], 0x101d1eb4
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.10010220
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push edi
push dword [ebp - 0x38]
mov dword [edi + 0x1c], 0
push dword [ebp - 0x3c]
mov dword [edi], eax
lea ecx, [ecx + 0x864]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov word [edi + 0xc], 0
call fcn.1000d020
mov esi, eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov dword [ecx + 0x86c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.1000d360
int3