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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
push edi
push esi
mov ebx, ecx
call fcn.004ab634
add esp, 8
test eax, eax
jne 0x469d1a
mov ecx, esi
call fcn.004681d0
test eax, eax
je 0x469b78
mov eax, dword [ebx + 0x10b98]
mov dword [ebp - 8], eax
jmp 0x469b7f
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 3
push accept
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x469d11
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x469d11
cmp dword [ebp - 8], 0
jne 0x469cac
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
xor esi, esi
add ecx, dword [ebp - 0x20]
adc eax, esi
cmp eax, 0x19db1de
ja 0x469bf6
jb 0x469bee
cmp ecx, 0xd53e8000
jae 0x469bf6
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], esi
jmp 0x469c03
push eax
push ecx
lea esi, [edi + 0x20]
call fcn.004677e0
add esp, 8
cmp dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
jne 0x469c1e
test ecx, ecx
jne 0x469c1e
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x469c4c
xor eax, eax
xor edx, edx
add eax, dword [ebp - 0x10]
lea esi, [edi + 0x18]
adc ecx, edx
cmp ecx, 0x19db1de
ja 0x469c42
jb 0x469c3b
cmp eax, 0xd53e8000
jae 0x469c42
mov dword [esi], edx
mov dword [esi + 4], edx
jmp 0x469c4c
push ecx
push eax
call fcn.004677e0
add esp, 8
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test edx, edx
jne 0x469c6f
test ecx, ecx
jne 0x469c6f
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x28]
xor edi, edi
add eax, edx
adc ecx, edi
cmp ecx, 0x19db1de
ja 0x469c99
jb 0x469c8b
cmp eax, 0xd53e8000
jae 0x469c99
mov dword [esi], edi
mov dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push eax
call fcn.004677e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [edi + 0x20]
mov esi, ebx
lea edi, [ebp - 0x20]
call fcn.00467830
cmp dword [ebp - 0x10], 0
jne 0x469cd5
cmp dword [ebp - 0xc], 0
jne 0x469cd5
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
jmp 0x469ce6
mov esi, dword [ebp + 8]
add esi, 0x18
lea edi, [ebp - 0x10]
call fcn.00467830
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x18], 0
jne 0x469d06
cmp dword [ebp - 0x14], 0
jne 0x469d06
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [eax + 0x28]
lea edi, [ebp - 0x18]
call fcn.00467830
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x469d74
test bl, 0x10
je 0x469d74
push 0x30
push 0
push edi
call fcn.004b2d10
add esp, 0xc
mov esi, 0x210000
call fcn.00466cb0
shl ebx, 7
not ebx
and ebx, 0x80
or ebx, 0x4100
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x24], edx
mov dword [edi + 0x2c], edx
mov dword [edi + 0x1c], edx
mov word [edi + 6], bx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret