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

Disassembly:
push ebx
mov ebx, eax
mov eax, edx
push esi
add esp, 0xfffffef8
and eax, 7
cmp eax, 2
jne 0x406b26
mov eax, ebx
jmp 0x4069f6
inc dword [0x419fa8]
mov ecx, dword [0x419fa8]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x4069f0
mov eax, dword [0x419fa0]
call fcn.004066a5
test eax, eax
je 0x406a2c
mov eax, ebx
jmp 0x406a1d
inc dword [0x419fac]
mov ecx, dword [0x419fac]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x406a17
push dword [0x419fa4]
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x406ab5
cmp dword [0x40d6e8], 0
jne 0x406a65
mov eax, dword [0x419fa0]
call fcn.004061f4
mov eax, dword [0x419fa4]
call fcn.004061f4
mov eax, 2
jmp 0x406df2
mov eax, dword [0x419fa4]
call fcn.004062ac
inc eax
jne 0x406aa9
push dword [0x419fa4]
mov eax, 0x6f
call fcn.0040275c
push eax
call fcn.00402d1c
add esp, 8
mov eax, dword [0x419fa0]
call fcn.004061f4
mov eax, dword [0x419fa4]
call fcn.004061f4
mov eax, 3
jmp 0x406df2
mov dword [0x419f8c], 1
jmp 0x406af1
test bl, 0x10
jne 0x406af1
push dword [0x419fa4]
mov eax, 0x6f
call fcn.0040275c
push eax
call fcn.00402d1c
add esp, 8
mov eax, dword [0x419fa0]
call fcn.004061f4
mov eax, dword [0x419fa4]
call fcn.004061f4
mov eax, 3
jmp 0x406df2
mov edx, dword [0x419fa8]
inc dword [0x419fa8]
mov byte [edx], 0x2f
mov ecx, dword [0x419fac]
inc dword [0x419fac]
mov byte [ecx], 0x2f
mov eax, dword [0x419fac]
xor edx, edx
mov byte [eax], dl
mov eax, dword [0x419fa8]
mov byte [eax], dl
xor eax, eax
jmp 0x406df2
mov eax, edx
and eax, 7
cmp eax, 4
jne 0x406b72
mov edx, dword [0x419fa4]
mov eax, ebx
call fcn.004064bc
mov eax, dword [0x419fa4]
call fcn.004061f4
mov eax, dword [0x419fa0]
call fcn.004061f4
xor edx, edx
mov dword [0x419fac], edx
mov dword [0x419fa8], edx
mov dword [0x419fa4], edx
mov dword [0x419fa0], edx
xor eax, eax
jmp 0x406df2
cmp eax, 3
jne 0x406bf3
mov eax, ebx
xor esi, esi
jmp 0x406bab
inc dword [0x419fa8]
mov edx, dword [0x419fa8]
sub edx, dword [0x419fa0]
cmp edx, 0x104
jl 0x406bab
dec dword [0x419fa8]
mov esi, 1
mov ecx, dword [0x419fa8]
mov byte [ecx], 0
mov ecx, dword [0x419fa8]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x406b7d
mov eax, dword [0x40dd20]
test byte [eax + 0x14], 0x20
jne 0x406bd3
mov eax, dword [0x419fa0]
call fcn.004066a5
test eax, eax
je 0x406bec
mov eax, ebx
jmp 0x406bdd
inc dword [0x419fac]
mov ecx, dword [0x419fac]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x406bd7
mov eax, esi
jmp 0x406df2
mov ecx, edx
and ecx, 7
dec ecx
jne 0x406dc6
mov eax, dword [0x419f94]
add eax, dword [0x41a0bc]
inc eax
call fcn.004061e0
mov dword [0x419fa0], eax
test eax, eax
jne 0x406c23
mov eax, 0xa
jmp 0x406df2
mov eax, dword [0x419f94]
add eax, dword [0x41a0bc]
inc eax
call fcn.004061e0
mov dword [0x419fa4], eax
test eax, eax
jne 0x406c51
mov eax, dword [0x419fa0]
call fcn.004061f4
mov eax, 0xa
jmp 0x406df2
mov edx, dword [0x40dd20]
test byte [edx + 0x14], 0x20
je 0x406d4f
cmp dword [0x419f90], 0
je 0x406c8a
xor ecx, ecx
mov cl, byte [ebx + 1]
cmp ecx, 0x3a
jne 0x406c8a
xor eax, eax
mov al, byte [ebx]
call fcn.00406270
mov edx, dword [0x419fa0]
mov byte [edx], al
jmp 0x406d0a
cmp dword [0x419f90], 0
jne 0x406cc5
cmp dword [0x41a0bc], 1
jle 0x406cc5
mov ecx, dword [0x419f9c]
xor eax, eax
mov al, byte [ecx + 1]
cmp eax, 0x3a
jne 0x406cc5
mov edx, dword [0x419f9c]
xor eax, eax
mov al, byte [edx]
call fcn.00406270
mov edx, dword [0x419fa0]
mov byte [edx], al
jmp 0x406d0a
push esp
lea ecx, [esp + 8]
push ecx
push 0x104
push 0x40b5d3
call sub.KERNEL32.DLL_GetFullPathNameA
cmp eax, 0x104
jbe 0x406ceb
mov eax, 1
jmp 0x406df2
xor edx, edx
mov dl, byte [esp + 4]
add edx, 0xffffffa0
mov dword [0x419f98], edx
mov eax, dword [0x419fa0]
mov cl, byte [0x419f98]
add cl, 0x60
mov byte [eax], cl
mov edx, dword [0x419fa0]
xor ecx, ecx
mov cl, byte [edx]
add ecx, 0xffffffa0
mov dword [0x419f98], ecx
mov eax, dword [0x419fa0]
xor edx, edx
mov dl, byte [eax]
cmp edx, 0x61
jge 0x406d44
call fcn.004061f4
mov eax, dword [0x419fa4]
call fcn.004061f4
mov eax, 0x4e
jmp 0x406df2
mov edx, dword [0x419fa0]
mov byte [edx], 0
jmp 0x406d8a
cmp dword [0x419f90], 0
je 0x406d66
mov edx, ebx
mov eax, dword [0x419fa0]
call fcn.004064bc
jmp 0x406d8a
cmp dword [0x41a0bc], 0
jle 0x406d81
mov edx, dword [0x419f9c]
mov eax, dword [0x419fa0]
call fcn.004064bc
jmp 0x406d8a
mov ecx, dword [0x419fa0]
mov byte [ecx], 0
mov eax, dword [0x419fa0]
mov dword [0x419fa8], eax
mov edx, dword [0x419fa4]
mov dword [0x419fac], edx
jmp 0x406dae
inc dword [0x419fac]
inc dword [0x419fa8]
mov ecx, dword [0x419fa8]
mov edx, dword [0x419fac]
mov al, byte [ecx]
mov byte [edx], al
test al, al
jne 0x406da2
xor eax, eax
jmp 0x406df2
and edx, 7
cmp edx, 5
jne 0x406ded
cmp dword [0x41a0bc], 0
jle 0x406de9
mov eax, dword [0x419f9c]
call fcn.004061f4
xor edx, edx
mov dword [0x41a0bc], edx
xor eax, eax
jmp 0x406df2
mov eax, 0x63
add esp, 0x108
pop esi
pop ebx
ret