Function at 0x4c7d80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xcc], 0
push str.root_cloudrule
lea ecx, [ebp - 4]
call fcn.004875c0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 1
je 0x4c7dc3
cmp dword [ebp - 0xd4], 2
je 0x4c7dd2
jmp 0x4c7de1
push 0x5396c0
lea ecx, [ebp - 4]
call fcn.004c8aa0
jmp 0x4c7df6
push str._mid
lea ecx, [ebp - 4]
call fcn.004c8aa0
jmp 0x4c7df6
lea ecx, [ebp - 4]
call fcn.00401160
lea ecx, [ebp + 8]
call fcn.0041d100
jmp 0x4c826b
push 0x5396cc
push 0x5396d0
lea ecx, [ebp - 0xc]
push ecx
call fcn.0041b740
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c7e3c
lea ecx, [ebp - 0xc]
call fcn.0041d100
lea ecx, [ebp - 4]
call fcn.00401160
lea ecx, [ebp + 8]
call fcn.0041d100
jmp 0x4c826b
lea ecx, [ebp - 0xc]
call fcn.0041d2b0
push eax
call fcn.004896f0
add esp, 4
test eax, eax
jne 0x4c7e6e
lea ecx, [ebp - 0xc]
call fcn.0041d100
lea ecx, [ebp - 4]
call fcn.00401160
lea ecx, [ebp + 8]
call fcn.0041d100
jmp 0x4c826b
push 0
lea ecx, [ebp - 8]
call fcn.00487eb0
lea ecx, [ebp - 8]
call fcn.00487f10
push eax
call fcn.00488d50
add esp, 4
xor edx, edx
test eax, eax
setge dl
test edx, edx
jne 0x4c7eb9
lea ecx, [ebp - 8]
call fcn.00487700
lea ecx, [ebp - 0xc]
call fcn.0041d100
lea ecx, [ebp - 4]
call fcn.00401160
lea ecx, [ebp + 8]
call fcn.0041d100
jmp 0x4c826b
xor eax, eax
mov word [ebp - 0x10], ax
lea ecx, [ebp - 8]
call fcn.00487f00
test eax, eax
je 0x4c7f5b
lea ecx, [ebp + 8]
call fcn.0041d2b0
push eax
lea ecx, [ebp - 0x70]
call fcn.00489670
or dword [ebp - 0xcc], 1
mov ecx, dword [eax]
mov dword [ebp - 0x60], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x5c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x58], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x54], edx
lea ecx, [ebp - 8]
call fcn.00487f20
mov dword [ebp - 0xd8], eax
lea eax, [ebp - 0x10]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x60]
mov dword [ecx], edx
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x58]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x54]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0xd8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x8c]
call ecx
test eax, eax
jl 0x4c7f5b
movsx edx, word [ebp - 0x10]
test edx, edx
je 0x4c7f5b
mov dword [ebp - 0xdc], 1
jmp 0x4c7f65
mov dword [ebp - 0xdc], 0
mov al, byte [ebp - 0xdc]
mov byte [ebp - 0x4d], al
mov ecx, dword [ebp - 0xcc]
and ecx, 1
je 0x4c7f88
and dword [ebp - 0xcc], 0xfffffffe
lea ecx, [ebp - 0x70]
call fcn.004896c0
movzx edx, byte [ebp - 0x4d]
test edx, edx
je 0x4c824b
lea ecx, [ebp - 0x14]
call fcn.00487f30
lea ecx, [ebp - 8]
call fcn.00487f20
mov dword [ebp - 0xe0], eax
lea ecx, [ebp - 0x14]
call fcn.00487f90
push eax
lea ecx, [ebp - 4]
call fcn.004875b0
push eax
mov eax, dword [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 0xe0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
call eax
test eax, eax
jl 0x4c8243
lea ecx, [ebp - 0x14]
call fcn.00487f80
test eax, eax
je 0x4c8243
lea ecx, [ebp - 0x18]
call fcn.00487fb0
lea ecx, [ebp - 0x14]
call fcn.00487fa0
mov dword [ebp - 0xe4], eax
lea ecx, [ebp - 0x18]
call fcn.00488010
push eax
push str.item
lea ecx, [ebp - 0x78]
call fcn.004875c0
or dword [ebp - 0xcc], 2
mov ecx, eax
call fcn.004875b0
push eax
mov ecx, dword [ebp - 0xe4]
push ecx
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x68]
call ecx
test eax, eax
jl 0x4c8053
lea ecx, [ebp - 0x18]
call fcn.00488000
test eax, eax
je 0x4c8053
mov dword [ebp - 0xe8], 1
jmp 0x4c805d
mov dword [ebp - 0xe8], 0
mov dl, byte [ebp - 0xe8]
mov byte [ebp - 0x71], dl
mov eax, dword [ebp - 0xcc]
and eax, 2
je 0x4c8080
and dword [ebp - 0xcc], 0xfffffffd
lea ecx, [ebp - 0x78]
call fcn.00401160
movzx ecx, byte [ebp - 0x71]
test ecx, ecx
je 0x4c823b
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
call fcn.00488020
mov dword [ebp - 0xec], eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0xec]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x20], 0
jmp 0x4c80cb
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x1c]
jge 0x4c823b
lea ecx, [ebp - 0x24]
call fcn.00487f30
lea ecx, [ebp - 0x18]
call fcn.00488020
mov dword [ebp - 0xf0], eax
lea ecx, [ebp - 0x24]
call fcn.00487f90
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xf0]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
call ecx
test eax, eax
jl 0x4c822e
lea ecx, [ebp - 0x24]
call fcn.00487f80
test eax, eax
je 0x4c822e
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x24]
call fcn.00487f80
push eax
mov ecx, dword [ebp - 0xd0]
call fcn.004c8290
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x34], 0
je 0x4c8159
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x1c], ecx
jmp 0x4c8166
lea ecx, [ebp - 0x24]
call fcn.00487720
jmp 0x4c80c2
mov edx, dword [ebp - 0x34]
add edx, 0x20
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xd0]
call fcn.004c8f70
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp - 0xd0]
call fcn.004c8d10
push eax
lea ecx, [ebp - 0x30]
call fcn.004ba9c0
movzx edx, al
test edx, edx
je 0x4c81b3
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
call fcn.004c9010
add eax, 4
mov ecx, eax
call fcn.004c9180
jmp 0x4c822e
lea ecx, [ebp - 0x4c]
call fcn.004c9050
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004c9180
sub esp, 0x18
mov ecx, esp
lea edx, [ebp - 0x4c]
push edx
call fcn.004c9080
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x20]
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.004cb690
add esp, 0x20
push eax
lea ecx, [ebp - 0x9c]
call fcn.004cb6b0
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, dword [ebp - 0xd0]
call fcn.004c8d40
lea ecx, [ebp - 0x9c]
call fcn.004c8c00
lea ecx, [ebp - 0xbc]
call fcn.004c8be0
lea ecx, [ebp - 0x4c]
call fcn.004c9160
lea ecx, [ebp - 0x24]
call fcn.00487720
jmp 0x4c80c2
lea ecx, [ebp - 0x18]
call fcn.00487740
lea ecx, [ebp - 0x14]
call fcn.00487720
lea ecx, [ebp - 8]
call fcn.00487700
lea ecx, [ebp - 0xc]
call fcn.0041d100
lea ecx, [ebp - 4]
call fcn.00401160
lea ecx, [ebp + 8]
call fcn.0041d100
mov esp, ebp
pop ebp
ret 8