Function at 0x471870
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x513c90
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x573be0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
mov byte [esp + 0x17], 0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov ebx, dword [ebp + 8]
push str.path
mov ecx, ebx
mov dword [esp + 0x3c], 0
call fcn.00439d60
cmp eax, 0x57b240
je 0x471bc5
push str.path
mov ecx, ebx
call fcn.00439d60
cmp byte [eax + 8], 4
jne 0x471bc5
push str.path
mov ecx, ebx
call fcn.00439d60
mov esi, eax
cmp byte [esi + 8], 4
je 0x47191a
push 0x2a9
push str...WebInstallerUtilsjson_value.cpp
push str.type___stringValue
call fcn.004ed740
add esp, 0xc
push dword [esi]
lea ecx, [esp + 0x1c]
call fcn.00420650
lea edx, [esp + 0x18]
mov ecx, edx
call fcn.0042c120
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x471a26
push str.path_not_empty
lea ecx, [esp + 0x20]
call fcn.00420550
push str.isDriectoryEmpty
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 6
call fcn.004204a0
mov byte [esp + 0x38], 7
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 8
call fcn.00421890
add esp, 4
mov byte [esp + 0x38], 9
cmp dword [edi + 0xc], 0
je 0x4719b3
push 0
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [edi + 8]
push eax
call fcn.004219a0
mov byte [esp + 0x38], 8
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4719d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [esp + 0x38], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4719f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 6
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471a18
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 0
mov edx, dword [esp + 0x1c]
jmp 0x471ce3
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, str.path_is_empty
mov byte [esp + 0x38], 0xa
test eax, 0xffff0000
jne 0x471a66
movzx ebx, ax
mov ecx, ebx
call fcn.0041fcd0
test eax, eax
je 0x471a74
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00420bb0
jmp 0x471a74
push str.path_is_empty
lea ecx, [esp + 0x24]
call fcn.00420650
mov byte [esp + 0x38], 0xb
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, str.isDriectoryEmpty
mov byte [esp + 0x38], 0xc
test eax, 0xffff0000
jne 0x471ab9
movzx ebx, ax
mov ecx, ebx
call fcn.0041fcd0
test eax, eax
je 0x471ac9
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00420bb0
jmp 0x471ac9
push 0x10
push str.isDriectoryEmpty
lea ecx, [esp + 0x24]
call fcn.00420c80
mov byte [esp + 0x38], 0xd
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0xe
call fcn.00421890
add esp, 4
mov byte [esp + 0x38], 0xf
cmp dword [edi + 0xc], 0
je 0x471b18
push 0
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 8]
push eax
call fcn.004219a0
mov byte [esp + 0x38], 0xe
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x471b3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [esp + 0x38], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471b5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 0xb
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471b7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 0
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471b9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dl, 1
mov byte [esp + 0x17], dl
mov dword [esp + 0x38], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x471d1f
jmp 0x471d13
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, str.path_error
mov byte [esp + 0x38], 1
test eax, 0xffff0000
jne 0x471c05
movzx ebx, ax
mov ecx, ebx
call fcn.0041fcd0
test eax, eax
je 0x471c13
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00420bb0
jmp 0x471c13
push str.path_error
lea ecx, [esp + 0x24]
call fcn.00420650
push str.isDriectoryEmpty
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 2
call fcn.004204a0
mov byte [esp + 0x38], 3
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 4
call fcn.00421890
add esp, 4
mov byte [esp + 0x38], 5
cmp dword [edi + 0xc], 0
je 0x471c75
push 2
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [edi + 8]
push eax
call fcn.004219a0
mov byte [esp + 0x38], 4
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x471c9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [esp + 0x38], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471cb8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 2
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471cda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x38], 0
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x471cfc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x471d1b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dl, byte [esp + 0x17]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x471d35
mov eax, 0xb
mov word [ecx], ax
movzx eax, dl
mov word [ecx + 8], ax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8