Function at 0x40706c
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 0x4071be
mov eax, ebx
jmp 0x40708e
inc dword [0x41b3ac]
mov ecx, dword [0x41b3ac]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x407088
mov eax, dword [0x41b3a4]
call fcn.00406d3d
test eax, eax
je 0x4070c4
mov eax, ebx
jmp 0x4070b5
inc dword [0x41b3b0]
mov ecx, dword [0x41b3b0]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x4070af
push dword [0x41b3a8]
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40714d
cmp dword [0x40eaec], 0
jne 0x4070fd
mov eax, dword [0x41b3a4]
call fcn.0040688c
mov eax, dword [0x41b3a8]
call fcn.0040688c
mov eax, 2
jmp 0x40748a
mov eax, dword [0x41b3a8]
call fcn.00406944
inc eax
jne 0x407141
push dword [0x41b3a8]
mov eax, 0x6f
call fcn.00402874
push eax
call fcn.00402e2c
add esp, 8
mov eax, dword [0x41b3a4]
call fcn.0040688c
mov eax, dword [0x41b3a8]
call fcn.0040688c
mov eax, 3
jmp 0x40748a
mov dword [0x41b390], 1
jmp 0x407189
test bl, 0x10
jne 0x407189
push dword [0x41b3a8]
mov eax, 0x6f
call fcn.00402874
push eax
call fcn.00402e2c
add esp, 8
mov eax, dword [0x41b3a4]
call fcn.0040688c
mov eax, dword [0x41b3a8]
call fcn.0040688c
mov eax, 3
jmp 0x40748a
mov edx, dword [0x41b3ac]
inc dword [0x41b3ac]
mov byte [edx], 0x2f
mov ecx, dword [0x41b3b0]
inc dword [0x41b3b0]
mov byte [ecx], 0x2f
mov eax, dword [0x41b3b0]
xor edx, edx
mov byte [eax], dl
mov eax, dword [0x41b3ac]
mov byte [eax], dl
xor eax, eax
jmp 0x40748a
mov eax, edx
and eax, 7
cmp eax, 4
jne 0x40720a
mov edx, dword [0x41b3a8]
mov eax, ebx
call fcn.00406b54
mov eax, dword [0x41b3a8]
call fcn.0040688c
mov eax, dword [0x41b3a4]
call fcn.0040688c
xor edx, edx
mov dword [0x41b3b0], edx
mov dword [0x41b3ac], edx
mov dword [0x41b3a8], edx
mov dword [0x41b3a4], edx
xor eax, eax
jmp 0x40748a
cmp eax, 3
jne 0x40728b
mov eax, ebx
xor esi, esi
jmp 0x407243
inc dword [0x41b3ac]
mov edx, dword [0x41b3ac]
sub edx, dword [0x41b3a4]
cmp edx, 0x104
jl 0x407243
dec dword [0x41b3ac]
mov esi, 1
mov ecx, dword [0x41b3ac]
mov byte [ecx], 0
mov ecx, dword [0x41b3ac]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x407215
mov eax, dword [0x40f124]
test byte [eax + 0x14], 0x20
jne 0x40726b
mov eax, dword [0x41b3a4]
call fcn.00406d3d
test eax, eax
je 0x407284
mov eax, ebx
jmp 0x407275
inc dword [0x41b3b0]
mov ecx, dword [0x41b3b0]
mov dl, byte [eax]
inc eax
test dl, dl
mov byte [ecx], dl
jne 0x40726f
mov eax, esi
jmp 0x40748a
mov ecx, edx
and ecx, 7
dec ecx
jne 0x40745e
mov eax, dword [0x41b398]
add eax, dword [0x41b4c0]
inc eax
call fcn.00406878
mov dword [0x41b3a4], eax
test eax, eax
jne 0x4072bb
mov eax, 0xa
jmp 0x40748a
mov eax, dword [0x41b398]
add eax, dword [0x41b4c0]
inc eax
call fcn.00406878
mov dword [0x41b3a8], eax
test eax, eax
jne 0x4072e9
mov eax, dword [0x41b3a4]
call fcn.0040688c
mov eax, 0xa
jmp 0x40748a
mov edx, dword [0x40f124]
test byte [edx + 0x14], 0x20
je 0x4073e7
cmp dword [0x41b394], 0
je 0x407322
xor ecx, ecx
mov cl, byte [ebx + 1]
cmp ecx, 0x3a
jne 0x407322
xor eax, eax
mov al, byte [ebx]
call fcn.00406908
mov edx, dword [0x41b3a4]
mov byte [edx], al
jmp 0x4073a2
cmp dword [0x41b394], 0
jne 0x40735d
cmp dword [0x41b4c0], 1
jle 0x40735d
mov ecx, dword [0x41b3a0]
xor eax, eax
mov al, byte [ecx + 1]
cmp eax, 0x3a
jne 0x40735d
mov edx, dword [0x41b3a0]
xor eax, eax
mov al, byte [edx]
call fcn.00406908
mov edx, dword [0x41b3a4]
mov byte [edx], al
jmp 0x4073a2
push esp
lea ecx, [esp + 8]
push ecx
push 0x104
push 0x40c60f
call sub.KERNEL32.DLL_GetFullPathNameA
cmp eax, 0x104
jbe 0x407383
mov eax, 1
jmp 0x40748a
xor edx, edx
mov dl, byte [esp + 4]
add edx, 0xffffffa0
mov dword [0x41b39c], edx
mov eax, dword [0x41b3a4]
mov cl, byte [0x41b39c]
add cl, 0x60
mov byte [eax], cl
mov edx, dword [0x41b3a4]
xor ecx, ecx
mov cl, byte [edx]
add ecx, 0xffffffa0
mov dword [0x41b39c], ecx
mov eax, dword [0x41b3a4]
xor edx, edx
mov dl, byte [eax]
cmp edx, 0x61
jge 0x4073dc
call fcn.0040688c
mov eax, dword [0x41b3a8]
call fcn.0040688c
mov eax, 0x4e
jmp 0x40748a
mov edx, dword [0x41b3a4]
mov byte [edx], 0
jmp 0x407422
cmp dword [0x41b394], 0
je 0x4073fe
mov edx, ebx
mov eax, dword [0x41b3a4]
call fcn.00406b54
jmp 0x407422
cmp dword [0x41b4c0], 0
jle 0x407419
mov edx, dword [0x41b3a0]
mov eax, dword [0x41b3a4]
call fcn.00406b54
jmp 0x407422
mov ecx, dword [0x41b3a4]
mov byte [ecx], 0
mov eax, dword [0x41b3a4]
mov dword [0x41b3ac], eax
mov edx, dword [0x41b3a8]
mov dword [0x41b3b0], edx
jmp 0x407446
inc dword [0x41b3b0]
inc dword [0x41b3ac]
mov ecx, dword [0x41b3ac]
mov edx, dword [0x41b3b0]
mov al, byte [ecx]
mov byte [edx], al
test al, al
jne 0x40743a
xor eax, eax
jmp 0x40748a
and edx, 7
cmp edx, 5
jne 0x407485
cmp dword [0x41b4c0], 0
jle 0x407481
mov eax, dword [0x41b3a0]
call fcn.0040688c
xor edx, edx
mov dword [0x41b4c0], edx
xor eax, eax
jmp 0x40748a
mov eax, 0x63
add esp, 0x108
pop esi
pop ebx
ret