Function at 0x406c2c
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 0x406d7e
mov eax, ebx
jmp 0x406c4e
inc dword [0x419fb4]
mov ecx, dword [0x419fb4]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x406c48
mov eax, dword [0x419fac]
call fcn.004068fd
test eax, eax
je 0x406c84
mov eax, ebx
jmp 0x406c75
inc dword [0x419fb8]
mov ecx, dword [0x419fb8]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x406c6f
push dword [0x419fb0]
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x406d0d
cmp dword [0x40d6f4], 0
jne 0x406cbd
mov eax, dword [0x419fac]
call fcn.0040644c
mov eax, dword [0x419fb0]
call fcn.0040644c
mov eax, 2
jmp 0x40704a
mov eax, dword [0x419fb0]
call fcn.00406504
inc eax
jne 0x406d01
push dword [0x419fb0]
mov eax, 0x6f
call fcn.00402828
push eax
call fcn.00402de8
add esp, 8
mov eax, dword [0x419fac]
call fcn.0040644c
mov eax, dword [0x419fb0]
call fcn.0040644c
mov eax, 3
jmp 0x40704a
mov dword [0x419f98], 1
jmp 0x406d49
test bl, 0x10
jne 0x406d49
push dword [0x419fb0]
mov eax, 0x6f
call fcn.00402828
push eax
call fcn.00402de8
add esp, 8
mov eax, dword [0x419fac]
call fcn.0040644c
mov eax, dword [0x419fb0]
call fcn.0040644c
mov eax, 3
jmp 0x40704a
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 0x40704a
mov eax, edx
and eax, 7
cmp eax, 4
jne 0x406dca
mov edx, dword [0x419fb0]
mov eax, ebx
call fcn.00406714
mov eax, dword [0x419fb0]
call fcn.0040644c
mov eax, dword [0x419fac]
call fcn.0040644c
xor edx, edx
mov dword [0x419fb8], edx
mov dword [0x419fb4], edx
mov dword [0x419fb0], edx
mov dword [0x419fac], edx
xor eax, eax
jmp 0x40704a
cmp eax, 3
jne 0x406e4b
mov eax, ebx
xor esi, esi
jmp 0x406e03
inc dword [0x419fb4]
mov edx, dword [0x419fb4]
sub edx, dword [0x419fac]
cmp edx, 0x104
jl 0x406e03
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 0x406dd5
mov eax, dword [0x40dd2c]
test byte [eax + 0x14], 0x20
jne 0x406e2b
mov eax, dword [0x419fac]
call fcn.004068fd
test eax, eax
je 0x406e44
mov eax, ebx
jmp 0x406e35
inc dword [0x419fb8]
mov ecx, dword [0x419fb8]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x406e2f
mov eax, esi
jmp 0x40704a
mov ecx, edx
and ecx, 7
dec ecx
jne 0x40701e
mov eax, dword [0x419fa0]
add eax, dword [0x41a0c8]
inc eax
call fcn.00406438
mov dword [0x419fac], eax
test eax, eax
jne 0x406e7b
mov eax, 0xa
jmp 0x40704a
mov eax, dword [0x419fa0]
add eax, dword [0x41a0c8]
inc eax
call fcn.00406438
mov dword [0x419fb0], eax
test eax, eax
jne 0x406ea9
mov eax, dword [0x419fac]
call fcn.0040644c
mov eax, 0xa
jmp 0x40704a
mov edx, dword [0x40dd2c]
test byte [edx + 0x14], 0x20
je 0x406fa7
cmp dword [0x419f9c], 0
je 0x406ee2
xor ecx, ecx
mov cl, byte [ebx + 1]
cmp ecx, 0x3a
jne 0x406ee2
xor eax, eax
mov al, byte [ebx]
call fcn.004064c8
mov edx, dword [0x419fac]
mov byte [edx], al
jmp 0x406f62
cmp dword [0x419f9c], 0
jne 0x406f1d
cmp dword [0x41a0c8], 1
jle 0x406f1d
mov ecx, dword [0x419fa8]
xor eax, eax
mov al, byte [ecx + 1]
cmp eax, 0x3a
jne 0x406f1d
mov edx, dword [0x419fa8]
xor eax, eax
mov al, byte [edx]
call fcn.004064c8
mov edx, dword [0x419fac]
mov byte [edx], al
jmp 0x406f62
push esp
lea ecx, [esp + 8]
push ecx
push 0x104
push 0x40b5db
call sub.KERNEL32.DLL_GetFullPathNameA
cmp eax, 0x104
jbe 0x406f43
mov eax, 1
jmp 0x40704a
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 0x406f9c
call fcn.0040644c
mov eax, dword [0x419fb0]
call fcn.0040644c
mov eax, 0x4e
jmp 0x40704a
mov edx, dword [0x419fac]
mov byte [edx], 0
jmp 0x406fe2
cmp dword [0x419f9c], 0
je 0x406fbe
mov edx, ebx
mov eax, dword [0x419fac]
call fcn.00406714
jmp 0x406fe2
cmp dword [0x41a0c8], 0
jle 0x406fd9
mov edx, dword [0x419fa8]
mov eax, dword [0x419fac]
call fcn.00406714
jmp 0x406fe2
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 0x407006
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 0x406ffa
xor eax, eax
jmp 0x40704a
and edx, 7
cmp edx, 5
jne 0x407045
cmp dword [0x41a0c8], 0
jle 0x407041
mov eax, dword [0x419fa8]
call fcn.0040644c
xor edx, edx
mov dword [0x41a0c8], edx
xor eax, eax
jmp 0x40704a
mov eax, 0x63
add esp, 0x108
pop esi
pop ebx
ret