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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
mov ebx, eax
mov eax, edx
and eax, 7
cmp eax, 2
jne 0x407871
mov eax, ebx
jmp 0x407741
inc dword [0x41c078]
mov ecx, dword [0x41c078]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x40773b
mov eax, dword [0x41c070]
call fcn.004073d8
test eax, eax
je 0x407777
mov eax, ebx
jmp 0x407768
inc dword [0x41c07c]
mov ecx, dword [0x41c07c]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x407762
push dword [0x41c074]
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x407800
cmp dword [0x40f7b8], 0
jne 0x4077b0
mov eax, dword [0x41c070]
call fcn.00406f3c
mov eax, dword [0x41c074]
call fcn.00406f3c
mov eax, 2
jmp 0x407b4e
mov eax, dword [0x41c074]
call fcn.00406ff4
inc eax
jne 0x4077f4
push dword [0x41c074]
mov eax, 0x6f
call fcn.00402b48
push eax
call fcn.00403110
add esp, 8
mov eax, dword [0x41c070]
call fcn.00406f3c
mov eax, dword [0x41c074]
call fcn.00406f3c
mov eax, 3
jmp 0x407b4e
mov dword [0x41c05c], 1
jmp 0x40783c
test bl, 0x10
jne 0x40783c
push dword [0x41c074]
mov eax, 0x6f
call fcn.00402b48
push eax
call fcn.00403110
add esp, 8
mov eax, dword [0x41c070]
call fcn.00406f3c
mov eax, dword [0x41c074]
call fcn.00406f3c
mov eax, 3
jmp 0x407b4e
mov edx, dword [0x41c078]
inc dword [0x41c078]
mov byte [edx], 0x2f
mov ecx, dword [0x41c07c]
inc dword [0x41c07c]
mov byte [ecx], 0x2f
mov eax, dword [0x41c07c]
xor edx, edx
mov byte [eax], dl
mov eax, dword [0x41c078]
mov byte [eax], dl
xor eax, eax
jmp 0x407b4e
mov ecx, edx
and ecx, 7
cmp ecx, 4
jne 0x4078bd
mov edx, dword [0x41c074]
mov eax, ebx
call fcn.004071f4
mov eax, dword [0x41c074]
call fcn.00406f3c
mov eax, dword [0x41c070]
call fcn.00406f3c
xor edx, edx
mov dword [0x41c07c], edx
mov dword [0x41c078], edx
mov dword [0x41c074], edx
mov dword [0x41c070], edx
xor eax, eax
jmp 0x407b4e
mov ecx, edx
and ecx, 7
cmp ecx, 3
jne 0x407943
mov eax, ebx
xor esi, esi
jmp 0x4078fb
inc dword [0x41c078]
mov edx, dword [0x41c078]
sub edx, dword [0x41c070]
cmp edx, 0x104
jl 0x4078fb
dec dword [0x41c078]
mov esi, 1
mov ecx, dword [0x41c078]
mov byte [ecx], 0
mov ecx, dword [0x41c078]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x4078cd
mov eax, dword [0x40fdf0]
test byte [eax + 0x14], 0x20
jne 0x407923
mov eax, dword [0x41c070]
call fcn.004073d8
test eax, eax
je 0x40793c
mov eax, ebx
jmp 0x40792d
inc dword [0x41c07c]
mov ecx, dword [0x41c07c]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x407927
mov eax, esi
jmp 0x407b4e
mov ecx, edx
and ecx, 7
dec ecx
jne 0x407b22
mov eax, dword [0x41c064]
add eax, dword [0x41c18c]
inc eax
call fcn.00406f28
mov dword [0x41c070], eax
test eax, eax
jne 0x407973
mov eax, 0xa
jmp 0x407b4e
mov eax, dword [0x41c064]
add eax, dword [0x41c18c]
inc eax
call fcn.00406f28
mov dword [0x41c074], eax
test eax, eax
jne 0x4079a1
mov eax, dword [0x41c070]
call fcn.00406f3c
mov eax, 0xa
jmp 0x407b4e
mov edx, dword [0x40fdf0]
test byte [edx + 0x14], 0x20
je 0x407aab
cmp dword [0x41c060], 0
je 0x4079da
xor ecx, ecx
mov cl, byte [ebx + 1]
cmp ecx, 0x3a
jne 0x4079da
xor eax, eax
mov al, byte [ebx]
call fcn.00406fb8
mov edx, dword [0x41c070]
mov byte [edx], al
jmp 0x407a61
cmp dword [0x41c060], 0
jne 0x407a15
cmp dword [0x41c18c], 1
jle 0x407a15
mov ecx, dword [0x41c06c]
xor eax, eax
mov al, byte [ecx + 1]
cmp eax, 0x3a
jne 0x407a15
mov edx, dword [0x41c06c]
xor eax, eax
mov al, byte [edx]
call fcn.00406fb8
mov edx, dword [0x41c070]
mov byte [edx], al
jmp 0x407a61
lea ecx, [ebp - 4]
push ecx
lea eax, [ebp - 0x108]
push eax
push 0x104
push 0x40c653
call sub.KERNEL32.DLL_GetFullPathNameA
cmp eax, 0x104
jbe 0x407a40
mov eax, 1
jmp 0x407b4e
xor edx, edx
mov dl, byte [ebp - 0x108]
add edx, 0xffffffa0
mov dword [0x41c068], edx
mov eax, dword [0x41c070]
mov cl, byte [0x41c068]
add cl, 0x60
mov byte [eax], cl
mov edx, dword [0x41c070]
xor ecx, ecx
mov cl, byte [edx]
add ecx, 0xffffffa0
mov dword [0x41c068], ecx
mov eax, dword [0x41c070]
xor edx, edx
mov dl, byte [eax]
cmp edx, 0x61
jge 0x407aa0
mov eax, dword [0x41c070]
call fcn.00406f3c
mov eax, dword [0x41c074]
call fcn.00406f3c
mov eax, 0x4e
jmp 0x407b4e
mov edx, dword [0x41c070]
mov byte [edx], 0
jmp 0x407ae6
cmp dword [0x41c060], 0
je 0x407ac2
mov edx, ebx
mov eax, dword [0x41c070]
call fcn.004071f4
jmp 0x407ae6
cmp dword [0x41c18c], 0
jle 0x407add
mov edx, dword [0x41c06c]
mov eax, dword [0x41c070]
call fcn.004071f4
jmp 0x407ae6
mov ecx, dword [0x41c070]
mov byte [ecx], 0
mov eax, dword [0x41c070]
mov dword [0x41c078], eax
mov edx, dword [0x41c074]
mov dword [0x41c07c], edx
jmp 0x407b0a
inc dword [0x41c07c]
inc dword [0x41c078]
mov ecx, dword [0x41c078]
mov edx, dword [0x41c07c]
mov al, byte [ecx]
mov byte [edx], al
test al, al
jne 0x407afe
xor eax, eax
jmp 0x407b4e
and edx, 7
cmp edx, 5
jne 0x407b49
cmp dword [0x41c18c], 0
jle 0x407b45
mov eax, dword [0x41c06c]
call fcn.00406f3c
xor edx, edx
mov dword [0x41c18c], edx
xor eax, eax
jmp 0x407b4e
mov eax, 0x63
pop esi
pop ebx
mov esp, ebp
pop ebp
ret