Function at 0x470cd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480850
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4be5b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebx], 0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x470d18
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x4c], 0
xor eax, eax
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0xc]
push edx
push 3
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jne 0x470d66
lea ecx, [ebp - 0x24]
call fcn.00471980
mov ax, word [ebp - 0x34]
test ax, ax
jne 0x470d50
push str._Content_
jmp 0x470d87
cmp ax, 8
je 0x470d84
push dword [ebp - 0x24]
mov edi, 0x80004005
call fcn.0042cb6a
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.00473600
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
call fcn.00471a20
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [esi + 0x1c]
call fcn.004719b0
push dword [ebp - 0x24]
call fcn.0042cb6a
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.00473600
xor eax, eax
cmp dword [ebp + 0x14], eax
jne 0x47104d
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0xc]
push edx
push 9
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jne 0x470df3
mov ax, word [ebp - 0x34]
test ax, ax
jne 0x470de8
mov dword [esi + 0x40], edi
mov byte [esi + 0x45], al
jmp 0x470e1b
cmp ax, 0x13
je 0x470e11
mov edi, 0x80004005
lea ecx, [ebp - 0x34]
call fcn.00473600
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x40], eax
mov byte [esi + 0x45], 1
lea ecx, [ebp - 0x34]
call fcn.00473600
mov ecx, dword [esi + 0xc]
mov dword [ebp + 0x10], 0
test ecx, ecx
je 0x470e3e
mov eax, dword [ecx]
lea edx, [ebp + 0x10]
push edx
push ecx
call dword [eax + 0x14]
mov ecx, dword [esi + 0xc]
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x44]
push eax
push edi
push ecx
call fcn.004710d0
add esp, 0xc
test eax, eax
jne 0x47104d
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0xc]
push edx
push 0xc
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jne 0x470df3
mov byte [esi + 0x46], al
movzx eax, word [ebp - 0x34]
test eax, eax
je 0x470e9b
cmp eax, 0x40
jne 0x470dee
mov eax, dword [ebp - 0x2c]
lea edi, [esi + 0x38]
mov dword [edi], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 4], eax
mov byte [esi + 0x46], 1
jmp 0x470e9e
lea edi, [esi + 0x38]
lea ecx, [ebp - 0x34]
call fcn.00473600
mov edx, dword [esi + 0x68]
test edx, edx
je 0x470edb
mov ecx, dword [edx]
xor eax, eax
cmp byte [esi + 0x44], al
push edi
setne al
lea edi, [esi + 0x1c]
push eax
push dword [edi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
call dword [ecx + 4]
mov dword [esi + 0x6c], eax
cmp eax, 1
jne 0x470ede
mov dword [ebx], 0
jmp 0x47104b
lea edi, [esi + 0x1c]
mov ecx, edi
call fcn.00471ce0
test eax, eax
js 0x470f1e
push edi
push eax
lea ecx, [ebp - 0x24]
call fcn.00471870
lea ecx, [ebp - 0x24]
push ecx
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00471a90
push dword [eax]
call fcn.00472550
push dword [ebp - 0x30]
call fcn.0042cb6a
push dword [ebp - 0x24]
call fcn.0042cb6a
add esp, 0x18
lea eax, [esi + 0x10]
push edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00471a90
add esp, 0xc
lea eax, [ebp - 0x18]
lea ecx, [esi + 0x28]
push eax
call fcn.004719b0
cmp byte [esi + 0x44], 0
je 0x470f4e
push dword [ebp - 0x18]
call fcn.00472550
jmp 0x47103d
lea ecx, [ebp - 0x6c]
call fcn.00472910
lea ecx, [ebp - 0x44]
call fcn.00471980
push 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x6c]
call fcn.00472af0
test al, al
je 0x470fa2
push dword [ebp - 0x18]
call fcn.00472800
add esp, 4
test al, al
jne 0x470fa2
push dword [ebp - 0x18]
call fcn.00459ef0
test eax, eax
jns 0x470fa2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x470fa2
mov dword [ebx], 0
jmp 0x471035
push 0x18
call fcn.0042cb31
mov edi, eax
add esp, 4
test edi, edi
je 0x470fcc
mov dword [edi + 4], 0
mov dword [edi], vtable.COutFileStream.0
mov dword [edi + 8], 0xffffffff
mov byte [edi + 0xc], 0
jmp 0x470fce
xor edi, edi
mov dword [esi + 0x48], edi
mov ecx, edi
test edi, edi
je 0x470fe0
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x48]
mov eax, dword [ebp - 0x18]
push 2
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
add ecx, 8
push eax
call fcn.00472220
test al, al
jne 0x471019
mov dword [ebx], 0
mov dword [ebp - 4], 0
test edi, edi
je 0x471035
mov eax, dword [edi]
push edi
call dword [eax + 8]
jmp 0x471035
test edi, edi
je 0x471023
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x471030
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x4c], edi
mov dword [ebx], edi
push dword [ebp - 0x44]
call fcn.0042cb6a
add esp, 4
push dword [ebp - 0x18]
call fcn.0042cb6a
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10