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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4f0008]
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 0x476b2b
cmp dword [edi + 0x18], edx
jne 0x476b2b
xor ebx, ebx
jmp 0x476b30
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 0x476b8d
cmp dword [eax], esi
je 0x476b4f
mov eax, dword [eax + 8]
test eax, eax
jne 0x476b42
jmp 0x476b8d
mov edx, dword [eax + 4]
test edx, edx
je 0x476b8a
mov eax, dword [0x4f7d20]
mov eax, dword [eax + 0x571fc]
mov eax, dword [eax]
cmp dword [ecx], esi
je 0x476b6e
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x476b63
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.004912f2
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0x14]
test ebx, ebx
je 0x476ba3
push 2
push edx
push esi
mov ecx, edi
call fcn.00475eb0
mov ebx, eax
jmp 0x476d27
cmp dword [0x504f94], 0
jne 0x476c7f
mov eax, dword [0x5051f8]
cmp dword [eax + 0x48], 1
jne 0x476c7f
cmp dword [eax + 0xf8], 0
jne 0x476c7f
mov eax, dword [0x4f7f30]
add eax, 0x978
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 0x4d64d8
lea eax, [ebp - 0x614]
push eax
push 2
push dword [edi + 0x24]
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x414]
call fcn.004865b0
lea eax, [ebp - 0x61c]
push eax
lea edx, [ebp - 0x618]
lea ecx, [ebp - 0x20c]
call fcn.0048cce0
add esp, 0x24
test eax, eax
je 0x476d33
push esi
mov ecx, edi
call fcn.004760a0
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 0x476d27
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x476d27
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00476e20
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x476cc5
push esi
lea eax, [ebp - 0x20c]
mov dword [0x4f7f20], 1
push eax
mov ecx, edi
call fcn.00476e20
mov dword [0x4f7f20], 0
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x476ce0
xor ebx, ebx
jmp 0x476d27
push ecx
mov ecx, dword [ebp - 0x61c]
lea edx, [ebp - 0x618]
call fcn.00485d70
add esp, 4
mov ecx, edi
push esi
call fcn.004760a0
mov ebx, eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 4]
test eax, eax
jne 0x476d15
xor ebx, ebx
jmp 0x476d27
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x618]
call dword [eax + 0x28]
mov ebx, 1
test ebx, ebx
jne 0x476d62
cmp dword [ebp - 0x620], ebx
jne 0x476da0
push esi
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.00476e20
lea ecx, [ebp - 0x414]
call fcn.004858e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4f7d28]
call fcn.0048d000
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov eax, dword [0x4f7d20]
mov eax, dword [eax + 0x571fc]
mov ecx, dword [eax]
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 8]
test eax, eax
je 0x476d9b
nop word [eax + eax]
cmp dword [eax], esi
je 0x476d9d
mov eax, dword [eax + 8]
test eax, eax
jne 0x476d90
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.004912f2
mov esp, ebp
pop ebp
ret 4