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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
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 0x47972b
cmp dword [edi + 0x18], edx
jne 0x47972b
xor ebx, ebx
jmp 0x479730
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 0x47978d
cmp dword [eax], esi
je 0x47974f
mov eax, dword [eax + 8]
test eax, eax
jne 0x479742
jmp 0x47978d
mov edx, dword [eax + 4]
test edx, edx
je 0x47978a
mov eax, dword [0x4faeb4]
mov eax, dword [eax + 0x571fc]
mov eax, dword [eax]
cmp dword [ecx], esi
je 0x47976e
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x479763
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 0x4797a3
push 2
push edx
push esi
mov ecx, edi
call fcn.00478a30
mov ebx, eax
jmp 0x479927
cmp dword [0x508184], 0
jne 0x47987f
mov eax, dword [0x5083f0]
cmp dword [eax + 0x48], 1
jne 0x47987f
cmp dword [eax + 0xf8], 0
jne 0x47987f
mov eax, dword [0x4fb114]
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 0x4da39c
lea eax, [ebp - 0x614]
push eax
push 2
push dword [edi + 0x24]
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x414]
call fcn.00489d50
lea eax, [ebp - 0x61c]
push eax
lea edx, [ebp - 0x618]
lea ecx, [ebp - 0x20c]
call fcn.00490810
add esp, 0x24
test eax, eax
je 0x479933
push esi
mov ecx, edi
call fcn.00478be0
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 0x479927
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x479927
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00479a20
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4798c5
push esi
lea eax, [ebp - 0x20c]
mov dword [0x4fb100], 1
push eax
mov ecx, edi
call fcn.00479a20
mov dword [0x4fb100], 0
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4798e0
xor ebx, ebx
jmp 0x479927
push ecx
mov ecx, dword [ebp - 0x61c]
lea edx, [ebp - 0x618]
call fcn.00489520
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 0x479915
xor ebx, ebx
jmp 0x479927
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x618]
call dword [eax + 0x28]
mov ebx, 1
test ebx, ebx
jne 0x479962
cmp dword [ebp - 0x620], ebx
jne 0x4799a0
push esi
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.00479a20
lea ecx, [ebp - 0x414]
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 [0x4faec0]
call fcn.004910a0
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov eax, dword [0x4faeb4]
mov eax, dword [eax + 0x571fc]
mov ecx, dword [eax]
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 8]
test eax, eax
je 0x47999b
nop word [eax + eax]
cmp dword [eax], esi
je 0x47999d
mov eax, dword [eax + 8]
test eax, eax
jne 0x479990
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.004954a2
mov esp, ebp
pop ebp
ret 4