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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
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 0x479b2b
cmp dword [edi + 0x18], edx
jne 0x479b2b
xor ebx, ebx
jmp 0x479b30
mov ebx, 1
mov dword [ebp - 0x218], ebx
cmp esi, 0x1f3
ja 0x479d50
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 8]
mov eax, ecx
test eax, eax
je 0x479b9b
nop
cmp dword [eax], esi
je 0x479b5d
mov eax, dword [eax + 8]
test eax, eax
jne 0x479b50
jmp 0x479b9b
mov edx, dword [eax + 4]
test edx, edx
je 0x479b98
mov eax, dword [0x4fbe54]
mov eax, dword [eax + 0x571fc]
mov eax, dword [eax]
cmp dword [ecx], esi
je 0x479b7c
mov ecx, dword [ecx + 8]
test ecx, ecx
jne 0x479b71
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 0x479bb1
push 0
push edx
push esi
mov ecx, edi
call fcn.00479570
mov ebx, eax
jmp 0x479d2a
cmp dword [0x509164], 0
jne 0x479c81
mov eax, dword [0x5093d0]
cmp dword [eax + 0x48], 1
jne 0x479c81
cmp dword [eax + 0xf4], 0
jne 0x479c81
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00479a20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x479c1e
push esi
lea eax, [ebp - 0x20c]
mov dword [0x4fc0f0], 1
push eax
mov ecx, edi
call fcn.00479a20
mov dword [0x4fc0f0], 0
lea eax, [ebp - 0x214]
push eax
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.00491240
add esp, 4
test eax, eax
je 0x479d36
push esi
mov ecx, edi
call fcn.00479720
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 0x479d2a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x479d2a
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00479ec0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x479cc7
push esi
lea eax, [ebp - 0x20c]
mov dword [0x4fc0f0], 1
push eax
mov ecx, edi
call fcn.00479ec0
mov dword [0x4fc0f0], 0
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x479ce2
xor ebx, ebx
jmp 0x479d2a
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push 0
call fcn.0048a050
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 0x479d18
xor ebx, ebx
jmp 0x479d2a
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x210]
call dword [eax + 0x28]
mov ebx, 1
test ebx, ebx
jne 0x479d65
cmp dword [ebp - 0x218], ebx
jne 0x479d8e
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00479e10
lea ecx, [ebp - 0x20c]
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 [0x4fbe5c]
call fcn.00491590
push esi
mov ecx, edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov eax, dword [0x4fbe54]
mov edx, dword [eax + 0x571fc]
call fcn.004797b0
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.00495852
mov esp, ebp
pop ebp
ret 4