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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4f4008]
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 0x47a26b
cmp dword [edi + 0x18], edx
jne 0x47a26b
xor ebx, ebx
jmp 0x47a270
mov ebx, 1
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x620], ebx
mov ecx, dword [eax + 8]
mov eax, ecx
test eax, eax
je 0x47a2cd
cmp dword [eax], esi
je 0x47a28f
mov eax, dword [eax + 8]
test eax, eax
jne 0x47a282
jmp 0x47a2cd
mov edx, dword [eax + 4]
test edx, edx
je 0x47a2ca
mov eax, dword [0x4fbe54]
mov eax, dword [eax + 0x571fc]
mov eax, dword [eax]
cmp dword [ecx], esi
je 0x47a2ae
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x47a2a3
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.00495852
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0x14]
test ebx, ebx
je 0x47a2e3
push 2
push edx
push esi
mov ecx, edi
call fcn.00479570
mov ebx, eax
jmp 0x47a467
cmp dword [0x509164], 0
jne 0x47a3bf
mov eax, dword [0x5093d0]
cmp dword [eax + 0x48], 1
jne 0x47a3bf
cmp dword [eax + 0xf8], 0
jne 0x47a3bf
mov eax, dword [0x4fc0fc]
add eax, 0x9a0
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [edi + 8]
lea eax, [ebp - 0x614]
push str._04d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
push 0x4dac44
lea eax, [ebp - 0x614]
push eax
push 2
push dword [edi + 0x24]
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x414]
call fcn.0048a950
lea eax, [ebp - 0x61c]
push eax
lea edx, [ebp - 0x618]
lea ecx, [ebp - 0x20c]
call fcn.00491240
add esp, 0x24
test eax, eax
je 0x47a473
push esi
mov ecx, edi
call fcn.00479720
push dword [ebp - 0x61c]
mov ecx, eax
push dword [ebp - 0x618]
mov edx, dword [eax]
call dword [edx + 8]
mov ebx, eax
mov eax, dword [ebp - 0x618]
test eax, eax
je 0x47a467
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47a467
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0047a560
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x47a405
push esi
lea eax, [ebp - 0x20c]
mov dword [0x4fc0e8], 1
push eax
mov ecx, edi
call fcn.0047a560
mov dword [0x4fc0e8], 0
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x47a420
xor ebx, ebx
jmp 0x47a467
push ecx
mov ecx, dword [ebp - 0x61c]
lea edx, [ebp - 0x618]
call fcn.0048a120
add esp, 4
mov ecx, edi
push esi
call fcn.00479720
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 4]
test eax, eax
jne 0x47a455
xor ebx, ebx
jmp 0x47a467
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x618]
call dword [eax + 0x28]
mov ebx, 1
test ebx, ebx
jne 0x47a4a2
cmp dword [ebp - 0x620], ebx
jne 0x47a4e0
push esi
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.0047a560
lea ecx, [ebp - 0x414]
call fcn.00489be0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495852
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4fbe60]
call fcn.00491590
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov eax, dword [0x4fbe54]
mov eax, dword [eax + 0x571fc]
mov ecx, dword [eax]
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 8]
test eax, eax
je 0x47a4db
nop word [eax + eax]
cmp dword [eax], esi
je 0x47a4dd
mov eax, dword [eax + 8]
test eax, eax
jne 0x47a4d0
xor eax, eax
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495852
mov esp, ebp
pop ebp
ret 4