Function at 0x407018
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 0x40716a
mov eax, ebx
jmp 0x40703a
inc dword [0x41b3a8]
mov ecx, dword [0x41b3a8]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x407034
mov eax, dword [0x41b3a0]
call fcn.00406ce9
test eax, eax
je 0x407070
mov eax, ebx
jmp 0x407061
inc dword [0x41b3ac]
mov ecx, dword [0x41b3ac]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x40705b
push dword [0x41b3a4]
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4070f9
cmp dword [0x40eae8], 0
jne 0x4070a9
mov eax, dword [0x41b3a0]
call fcn.00406838
mov eax, dword [0x41b3a4]
call fcn.00406838
mov eax, 2
jmp 0x407436
mov eax, dword [0x41b3a4]
call fcn.004068f0
inc eax
jne 0x4070ed
push dword [0x41b3a4]
mov eax, 0x6f
call fcn.00402870
push eax
call fcn.00402e4c
add esp, 8
mov eax, dword [0x41b3a0]
call fcn.00406838
mov eax, dword [0x41b3a4]
call fcn.00406838
mov eax, 3
jmp 0x407436
mov dword [0x41b38c], 1
jmp 0x407135
test bl, 0x10
jne 0x407135
push dword [0x41b3a4]
mov eax, 0x6f
call fcn.00402870
push eax
call fcn.00402e4c
add esp, 8
mov eax, dword [0x41b3a0]
call fcn.00406838
mov eax, dword [0x41b3a4]
call fcn.00406838
mov eax, 3
jmp 0x407436
mov edx, dword [0x41b3a8]
inc dword [0x41b3a8]
mov byte [edx], 0x2f
mov ecx, dword [0x41b3ac]
inc dword [0x41b3ac]
mov byte [ecx], 0x2f
mov eax, dword [0x41b3ac]
xor edx, edx
mov byte [eax], dl
mov eax, dword [0x41b3a8]
mov byte [eax], dl
xor eax, eax
jmp 0x407436
mov eax, edx
and eax, 7
cmp eax, 4
jne 0x4071b6
mov edx, dword [0x41b3a4]
mov eax, ebx
call fcn.00406b00
mov eax, dword [0x41b3a4]
call fcn.00406838
mov eax, dword [0x41b3a0]
call fcn.00406838
xor edx, edx
mov dword [0x41b3ac], edx
mov dword [0x41b3a8], edx
mov dword [0x41b3a4], edx
mov dword [0x41b3a0], edx
xor eax, eax
jmp 0x407436
cmp eax, 3
jne 0x407237
mov eax, ebx
xor esi, esi
jmp 0x4071ef
inc dword [0x41b3a8]
mov edx, dword [0x41b3a8]
sub edx, dword [0x41b3a0]
cmp edx, 0x104
jl 0x4071ef
dec dword [0x41b3a8]
mov esi, 1
mov ecx, dword [0x41b3a8]
mov byte [ecx], 0
mov ecx, dword [0x41b3a8]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x4071c1
mov eax, dword [0x40f120]
test byte [eax + 0x14], 0x20
jne 0x407217
mov eax, dword [0x41b3a0]
call fcn.00406ce9
test eax, eax
je 0x407230
mov eax, ebx
jmp 0x407221
inc dword [0x41b3ac]
mov ecx, dword [0x41b3ac]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x40721b
mov eax, esi
jmp 0x407436
mov ecx, edx
and ecx, 7
dec ecx
jne 0x40740a
mov eax, dword [0x41b394]
add eax, dword [0x41b4bc]
inc eax
call fcn.00406824
mov dword [0x41b3a0], eax
test eax, eax
jne 0x407267
mov eax, 0xa
jmp 0x407436
mov eax, dword [0x41b394]
add eax, dword [0x41b4bc]
inc eax
call fcn.00406824
mov dword [0x41b3a4], eax
test eax, eax
jne 0x407295
mov eax, dword [0x41b3a0]
call fcn.00406838
mov eax, 0xa
jmp 0x407436
mov edx, dword [0x40f120]
test byte [edx + 0x14], 0x20
je 0x407393
cmp dword [0x41b390], 0
je 0x4072ce
xor ecx, ecx
mov cl, byte [ebx + 1]
cmp ecx, 0x3a
jne 0x4072ce
xor eax, eax
mov al, byte [ebx]
call fcn.004068b4
mov edx, dword [0x41b3a0]
mov byte [edx], al
jmp 0x40734e
cmp dword [0x41b390], 0
jne 0x407309
cmp dword [0x41b4bc], 1
jle 0x407309
mov ecx, dword [0x41b39c]
xor eax, eax
mov al, byte [ecx + 1]
cmp eax, 0x3a
jne 0x407309
mov edx, dword [0x41b39c]
xor eax, eax
mov al, byte [edx]
call fcn.004068b4
mov edx, dword [0x41b3a0]
mov byte [edx], al
jmp 0x40734e
push esp
lea ecx, [esp + 8]
push ecx
push 0x104
push 0x40c60f
call sub.KERNEL32.DLL_GetFullPathNameA
cmp eax, 0x104
jbe 0x40732f
mov eax, 1
jmp 0x407436
xor edx, edx
mov dl, byte [esp + 4]
add edx, 0xffffffa0
mov dword [0x41b398], edx
mov eax, dword [0x41b3a0]
mov cl, byte [0x41b398]
add cl, 0x60
mov byte [eax], cl
mov edx, dword [0x41b3a0]
xor ecx, ecx
mov cl, byte [edx]
add ecx, 0xffffffa0
mov dword [0x41b398], ecx
mov eax, dword [0x41b3a0]
xor edx, edx
mov dl, byte [eax]
cmp edx, 0x61
jge 0x407388
call fcn.00406838
mov eax, dword [0x41b3a4]
call fcn.00406838
mov eax, 0x4e
jmp 0x407436
mov edx, dword [0x41b3a0]
mov byte [edx], 0
jmp 0x4073ce
cmp dword [0x41b390], 0
je 0x4073aa
mov edx, ebx
mov eax, dword [0x41b3a0]
call fcn.00406b00
jmp 0x4073ce
cmp dword [0x41b4bc], 0
jle 0x4073c5
mov edx, dword [0x41b39c]
mov eax, dword [0x41b3a0]
call fcn.00406b00
jmp 0x4073ce
mov ecx, dword [0x41b3a0]
mov byte [ecx], 0
mov eax, dword [0x41b3a0]
mov dword [0x41b3a8], eax
mov edx, dword [0x41b3a4]
mov dword [0x41b3ac], edx
jmp 0x4073f2
inc dword [0x41b3ac]
inc dword [0x41b3a8]
mov ecx, dword [0x41b3a8]
mov edx, dword [0x41b3ac]
mov al, byte [ecx]
mov byte [edx], al
test al, al
jne 0x4073e6
xor eax, eax
jmp 0x407436
and edx, 7
cmp edx, 5
jne 0x407431
cmp dword [0x41b4bc], 0
jle 0x40742d
mov eax, dword [0x41b39c]
call fcn.00406838
xor edx, edx
mov dword [0x41b4bc], edx
xor eax, eax
jmp 0x407436
mov eax, 0x63
add esp, 0x108
pop esi
pop ebx
ret