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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422555
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x42d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push str..log
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x4c]
push edi
push eax
mov dword [ebp - 0x60], edi
call fcn.00408c60
add esp, 0xc
cmp dword [ebp - 0x38], 0xf
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
cmova eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4093df
xor esi, esi
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x58], esi
push str._08X
push eax
call fcn.00402a00
add esp, 0xc
mov dword [ebp - 0x24], 0
cmp dword [edi + 0x14], 0xf
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
mov eax, edi
mov dword [ebp - 0x50], edi
jbe 0x409126
mov eax, dword [edi]
mov dword [ebp - 0x50], eax
mov esi, dword [edi + 0x10]
cmp esi, 0x7fffffff
ja 0x409472
cmp esi, 0xf
ja 0x40914e
mov ecx, 0xf
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
jmp 0x4091bc
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x40916d
mov eax, SysReAllocString
mov edi, SysReAllocString
push eax
call fcn.00401930
jmp 0x409198
cmp edi, 0x16
mov eax, 0x16
cmovb edi, eax
lea eax, [edi + 1]
test eax, eax
jne 0x409183
xor ecx, ecx
jmp 0x40919d
cmp eax, 0x1000
jb 0x409192
push eax
call fcn.00401930
jmp 0x409198
push eax
call fcn.0040a1ab
mov ecx, eax
add esp, 4
lea eax, [esi + 1]
mov dword [ebp - 0x34], ecx
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x24], esi
push ecx
mov dword [ebp - 0x20], edi
call fcn.0040b6f0
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 1
cmp esi, ecx
jae 0x4091e2
lea eax, [esi + 1]
cmp ecx, 0xf
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
mov word [eax + esi], 0x7e
jmp 0x4092d0
mov eax, SysReAllocString
sub eax, esi
cmp eax, 1
jb 0x409472
lea edi, [esi + 1]
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x409212
mov eax, SysReAllocString
mov edi, SysReAllocString
push eax
call fcn.00401930
jmp 0x409257
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x409233
mov eax, SysReAllocString
mov edi, SysReAllocString
push eax
call fcn.00401930
jmp 0x409257
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
test eax, eax
je 0x40925d
cmp eax, 0x1000
jb 0x409251
push eax
call fcn.00401930
jmp 0x409257
push eax
call fcn.0040a1ab
mov ecx, dword [ebp - 0x54]
add esp, 4
mov dword [ebp - 0x20], edi
lea edx, [esi + 1]
mov dword [ebp - 0x50], eax
lea edi, [esi + eax]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x5c], edi
push esi
cmp ecx, 0xf
jbe 0x4092b8
mov edi, dword [ebp - 0x34]
push edi
push eax
call fcn.0040b6f0
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov ecx, dword [ebp - 0x54]
inc ecx
mov word [eax], 0x7e
cmp ecx, 0x1000
jb 0x4092ac
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x40946d
mov edi, edx
push ecx
push edi
call fcn.0040a17a
add esp, 8
jmp 0x4092ca
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040b6f0
add esp, 0xc
mov word [edi], 0x7e
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4092d6
sub ecx, edx
lea eax, [ebp - 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.004083b0
push 4
push str..log
lea ecx, [ebp - 0x34]
call fcn.004083b0
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40939b
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x20]
cmp esi, 0xffffffff
je 0x40935f
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x409356
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40934c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40946d
push ecx
push edx
call fcn.0040a17a
add esp, 8
mov edi, dword [ebp - 0x60]
inc esi
jmp 0x4090ec
cmp ecx, 0xf
jbe 0x40940a
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40938a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40946d
push ecx
push edx
call fcn.0040a17a
add esp, 8
xor esi, esi
jmp 0x409420
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00408ee0
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x4093df
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4093d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40946d
push ecx
push edx
call fcn.0040a17a
add esp, 8
cmp dword [ebp - 0x38], 0xf
lea eax, [ebp - 0x4c]
push 0
cmova eax, dword [ebp - 0x4c]
push 0x80
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40940e
xor esi, esi
jmp 0x409420
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x409420
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.00408ee0
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x409450
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409446
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409477
push ecx
push edx
call fcn.0040a17a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a16c
mov esp, ebp
pop ebp
ret
call fcn.00410cd4
call fcn.00401fa0
call fcn.00410cd4
int3