Function at 0x40d160
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x7eb0c841
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
sub eax, 0x8836ea32
je 0x40d5fa
jmp 0x40d18b
mov eax, dword [ebp - 0x24]
sub eax, 0x9d523112
je 0x40d56e
jmp 0x40d19e
mov eax, dword [ebp - 0x24]
sub eax, 0xa174460c
je 0x40d5ee
jmp 0x40d1b1
mov eax, dword [ebp - 0x24]
sub eax, 0xb0d44a9d
je 0x40d5b4
jmp 0x40d1c4
mov eax, dword [ebp - 0x24]
sub eax, 0xb0efa8eb
je 0x40d3d2
jmp 0x40d1d7
mov eax, dword [ebp - 0x24]
sub eax, 0xe55f6c79
je 0x40d4fb
jmp 0x40d1ea
mov eax, dword [ebp - 0x24]
sub eax, 0xf4d77f9a
je 0x40d4ef
jmp 0x40d1fd
mov eax, dword [ebp - 0x24]
sub eax, 0xfcecb1b1
je 0x40d609
jmp 0x40d210
mov eax, dword [ebp - 0x24]
sub eax, 0xd92d919
je 0x40d5e7
jmp 0x40d223
mov eax, dword [ebp - 0x24]
sub eax, 0x120a0553
je 0x40d3ed
jmp 0x40d236
mov eax, dword [ebp - 0x24]
sub eax, 0x281f572e
je 0x40d35f
jmp 0x40d249
mov eax, dword [ebp - 0x24]
sub eax, 0x295c2e40
je 0x40d5cf
jmp 0x40d25c
mov eax, dword [ebp - 0x24]
sub eax, 0x34c65105
je 0x40d2ec
jmp 0x40d26f
mov eax, dword [ebp - 0x24]
sub eax, 0x42ffd338
je 0x40d5db
jmp 0x40d282
mov eax, dword [ebp - 0x24]
sub eax, 0x487e4b62
je 0x40d476
jmp 0x40d295
mov eax, dword [ebp - 0x24]
sub eax, 0x70d8fa8a
je 0x40d40b
jmp 0x40d2a8
mov eax, dword [ebp - 0x24]
sub eax, 0x7eb0c841
je 0x40d2c0
jmp 0x40d2bb
jmp 0x40d610
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
setne al
and al, 1
mov byte [ebp - 0x11], al
mov dword [ebp - 0x1c], 0x34c65105
jmp 0x40d610
mov ecx, dword [0x43d544]
mov eax, dword [0x43d540]
mov edx, ecx
add edx, 0x2c18cf81
sub edx, 1
sub edx, 0x2c18cf81
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xa174460c
mov ecx, 0x281f572e
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40d610
mov ecx, dword [0x43d544]
mov eax, dword [0x43d540]
mov edx, ecx
sub edx, 0x9eadb50d
sub edx, 1
add edx, 0x9eadb50d
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xa174460c
mov ecx, 0xb0efa8eb
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40d610
mov dl, byte [ebp - 0x11]
mov eax, 0xd92d919
mov ecx, 0x120a0553
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40d610
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0x70d8fa8a
jmp 0x40d610
mov ecx, dword [0x43d544]
mov eax, dword [0x43d540]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0x8836ea32
mov ecx, 0x487e4b62
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40d610
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne al
and al, 1
mov byte [ebp - 9], al
mov ecx, dword [0x43d544]
mov eax, dword [0x43d540]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x8836ea32
mov ecx, 0xf4d77f9a
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40d610
mov dword [ebp - 0x1c], 0xe55f6c79
jmp 0x40d610
mov ecx, dword [0x43d544]
mov eax, dword [0x43d540]
mov edx, ecx
add edx, 0x4145fb6e
sub edx, 1
sub edx, 0x4145fb6e
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 0
mov dl, al
and dl, 0
and bl, cl
mov ch, ah
and ch, 0
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 0
and al, cl
or dl, al
mov eax, 0xfcecb1b1
mov ecx, 0x9d523112
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40d610
mov eax, dword [0x43d544]
mov ecx, dword [0x43d540]
xor esi, esi
sub esi, 1
mov edx, eax
add edx, esi
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xfcecb1b1
mov ecx, 0xb0d44a9d
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40d610
mov dl, byte [ebp - 9]
mov eax, 0x295c2e40
mov ecx, 0x42ffd338
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x1c], eax
jmp 0x40d610
mov dword [ebp - 0x1c], 0xd92d919
jmp 0x40d610
mov dword [ebp - 0x1c], 0xd92d919
jmp 0x40d610
add esp, 0x20
pop esi
pop ebx
pop ebp
ret
mov dword [ebp - 0x1c], 0x281f572e
jmp 0x40d610
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0x487e4b62
jmp 0x40d610
mov dword [ebp - 0x1c], 0x9d523112
jmp 0x40d175