Function at 0x478fc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4f3008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov edx, dword [edi + 0x14]
test edx, edx
jne 0x478feb
cmp dword [edi + 0x18], edx
jne 0x478feb
xor ebx, ebx
jmp 0x478ff0
mov ebx, 1
mov dword [ebp - 0x218], ebx
cmp esi, 0x1f3
ja 0x479210
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 8]
mov eax, ecx
test eax, eax
je 0x47905b
nop
cmp dword [eax], esi
je 0x47901d
mov eax, dword [eax + 8]
test eax, eax
jne 0x479010
jmp 0x47905b
mov edx, dword [eax + 4]
test edx, edx
je 0x479058
mov eax, dword [0x4faeb4]
mov eax, dword [eax + 0x571fc]
mov eax, dword [eax]
cmp dword [ecx], esi
je 0x47903c
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x479031
mov dword [ecx + 0x10], eax
mov ecx, edx
mov eax, dword [edx]
call dword [eax]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0x14]
test ebx, ebx
je 0x479071
push 0
push edx
push esi
mov ecx, edi
call fcn.00478a30
mov ebx, eax
jmp 0x4791ea
cmp dword [0x508184], 0
jne 0x479141
mov eax, dword [0x5083f0]
cmp dword [eax + 0x48], 1
jne 0x479141
cmp dword [eax + 0xf4], 0
jne 0x479141
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00478ee0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4790de
push esi
lea eax, [ebp - 0x20c]
mov dword [0x4fb108], 1
push eax
mov ecx, edi
call fcn.00478ee0
mov dword [0x4fb108], 0
lea eax, [ebp - 0x214]
push eax
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.00490810
add esp, 4
test eax, eax
je 0x4791f6
push esi
mov ecx, edi
call fcn.00478be0
push dword [ebp - 0x214]
mov ecx, eax
push dword [ebp - 0x210]
mov edx, dword [eax]
call dword [edx + 8]
mov ebx, eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4791ea
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4791ea
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00479380
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x479187
push esi
lea eax, [ebp - 0x20c]
mov dword [0x4fb108], 1
push eax
mov ecx, edi
call fcn.00479380
mov dword [0x4fb108], 0
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4791a2
xor ebx, ebx
jmp 0x4791ea
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push 0
call fcn.00489450
add esp, 4
mov ecx, edi
push esi
call fcn.00478be0
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 4]
test eax, eax
jne 0x4791d8
xor ebx, ebx
jmp 0x4791ea
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x210]
call dword [eax + 0x28]
mov ebx, 1
test ebx, ebx
jne 0x479225
cmp dword [ebp - 0x218], ebx
jne 0x47924e
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004792d0
lea ecx, [ebp - 0x20c]
call fcn.00488fe0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4faebc]
call fcn.004910a0
push esi
mov ecx, edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov eax, dword [0x4faeb4]
mov edx, dword [eax + 0x571fc]
call fcn.00478c70
mov ecx, dword [edx]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004954a2
mov esp, ebp
pop ebp
ret 4