Function at 0x406bf8
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 0x406d4a
mov eax, ebx
jmp 0x406c1a
inc dword [0x419fb4]
mov ecx, dword [0x419fb4]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x406c14
mov eax, dword [0x419fac]
call fcn.004068c9
test eax, eax
je 0x406c50
mov eax, ebx
jmp 0x406c41
inc dword [0x419fb8]
mov ecx, dword [0x419fb8]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x406c3b
push dword [0x419fb0]
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x406cd9
cmp dword [0x40d6f4], 0
jne 0x406c89
mov eax, dword [0x419fac]
call fcn.00406418
mov eax, dword [0x419fb0]
call fcn.00406418
mov eax, 2
jmp 0x407016
mov eax, dword [0x419fb0]
call fcn.004064d0
inc eax
jne 0x406ccd
push dword [0x419fb0]
mov eax, 0x6f
call fcn.004027f4
push eax
call fcn.00402db4
add esp, 8
mov eax, dword [0x419fac]
call fcn.00406418
mov eax, dword [0x419fb0]
call fcn.00406418
mov eax, 3
jmp 0x407016
mov dword [0x419f98], 1
jmp 0x406d15
test bl, 0x10
jne 0x406d15
push dword [0x419fb0]
mov eax, 0x6f
call fcn.004027f4
push eax
call fcn.00402db4
add esp, 8
mov eax, dword [0x419fac]
call fcn.00406418
mov eax, dword [0x419fb0]
call fcn.00406418
mov eax, 3
jmp 0x407016
mov edx, dword [0x419fb4]
inc dword [0x419fb4]
mov byte [edx], 0x2f
mov ecx, dword [0x419fb8]
inc dword [0x419fb8]
mov byte [ecx], 0x2f
mov eax, dword [0x419fb8]
xor edx, edx
mov byte [eax], dl
mov eax, dword [0x419fb4]
mov byte [eax], dl
xor eax, eax
jmp 0x407016
mov eax, edx
and eax, 7
cmp eax, 4
jne 0x406d96
mov edx, dword [0x419fb0]
mov eax, ebx
call fcn.004066e0
mov eax, dword [0x419fb0]
call fcn.00406418
mov eax, dword [0x419fac]
call fcn.00406418
xor edx, edx
mov dword [0x419fb8], edx
mov dword [0x419fb4], edx
mov dword [0x419fb0], edx
mov dword [0x419fac], edx
xor eax, eax
jmp 0x407016
cmp eax, 3
jne 0x406e17
mov eax, ebx
xor esi, esi
jmp 0x406dcf
inc dword [0x419fb4]
mov edx, dword [0x419fb4]
sub edx, dword [0x419fac]
cmp edx, 0x104
jl 0x406dcf
dec dword [0x419fb4]
mov esi, 1
mov ecx, dword [0x419fb4]
mov byte [ecx], 0
mov ecx, dword [0x419fb4]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x406da1
mov eax, dword [0x40dd2c]
test byte [eax + 0x14], 0x20
jne 0x406df7
mov eax, dword [0x419fac]
call fcn.004068c9
test eax, eax
je 0x406e10
mov eax, ebx
jmp 0x406e01
inc dword [0x419fb8]
mov ecx, dword [0x419fb8]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x406dfb
mov eax, esi
jmp 0x407016
mov ecx, edx
and ecx, 7
dec ecx
jne 0x406fea
mov eax, dword [0x419fa0]
add eax, dword [0x41a0c8]
inc eax
call fcn.00406404
mov dword [0x419fac], eax
test eax, eax
jne 0x406e47
mov eax, 0xa
jmp 0x407016
mov eax, dword [0x419fa0]
add eax, dword [0x41a0c8]
inc eax
call fcn.00406404
mov dword [0x419fb0], eax
test eax, eax
jne 0x406e75
mov eax, dword [0x419fac]
call fcn.00406418
mov eax, 0xa
jmp 0x407016
mov edx, dword [0x40dd2c]
test byte [edx + 0x14], 0x20
je 0x406f73
cmp dword [0x419f9c], 0
je 0x406eae
xor ecx, ecx
mov cl, byte [ebx + 1]
cmp ecx, 0x3a
jne 0x406eae
xor eax, eax
mov al, byte [ebx]
call fcn.00406494
mov edx, dword [0x419fac]
mov byte [edx], al
jmp 0x406f2e
cmp dword [0x419f9c], 0
jne 0x406ee9
cmp dword [0x41a0c8], 1
jle 0x406ee9
mov ecx, dword [0x419fa8]
xor eax, eax
mov al, byte [ecx + 1]
cmp eax, 0x3a
jne 0x406ee9
mov edx, dword [0x419fa8]
xor eax, eax
mov al, byte [edx]
call fcn.00406494
mov edx, dword [0x419fac]
mov byte [edx], al
jmp 0x406f2e
push esp
lea ecx, [esp + 8]
push ecx
push 0x104
push 0x40b5db
call sub.KERNEL32.DLL_GetFullPathNameA
cmp eax, 0x104
jbe 0x406f0f
mov eax, 1
jmp 0x407016
xor edx, edx
mov dl, byte [esp + 4]
add edx, 0xffffffa0
mov dword [0x419fa4], edx
mov eax, dword [0x419fac]
mov cl, byte [0x419fa4]
add cl, 0x60
mov byte [eax], cl
mov edx, dword [0x419fac]
xor ecx, ecx
mov cl, byte [edx]
add ecx, 0xffffffa0
mov dword [0x419fa4], ecx
mov eax, dword [0x419fac]
xor edx, edx
mov dl, byte [eax]
cmp edx, 0x61
jge 0x406f68
call fcn.00406418
mov eax, dword [0x419fb0]
call fcn.00406418
mov eax, 0x4e
jmp 0x407016
mov edx, dword [0x419fac]
mov byte [edx], 0
jmp 0x406fae
cmp dword [0x419f9c], 0
je 0x406f8a
mov edx, ebx
mov eax, dword [0x419fac]
call fcn.004066e0
jmp 0x406fae
cmp dword [0x41a0c8], 0
jle 0x406fa5
mov edx, dword [0x419fa8]
mov eax, dword [0x419fac]
call fcn.004066e0
jmp 0x406fae
mov ecx, dword [0x419fac]
mov byte [ecx], 0
mov eax, dword [0x419fac]
mov dword [0x419fb4], eax
mov edx, dword [0x419fb0]
mov dword [0x419fb8], edx
jmp 0x406fd2
inc dword [0x419fb8]
inc dword [0x419fb4]
mov ecx, dword [0x419fb4]
mov edx, dword [0x419fb8]
mov al, byte [ecx]
mov byte [edx], al
test al, al
jne 0x406fc6
xor eax, eax
jmp 0x407016
and edx, 7
cmp edx, 5
jne 0x407011
cmp dword [0x41a0c8], 0
jle 0x40700d
mov eax, dword [0x419fa8]
call fcn.00406418
xor edx, edx
mov dword [0x41a0c8], edx
xor eax, eax
jmp 0x407016
mov eax, 0x63
add esp, 0x108
pop esi
pop ebx
ret