Function at 0x464e60
Capabilities:
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov byte [ebp - 1], al
mov byte [ebp - 9], 0
cmp byte [ebp + 8], 0
je 0x464f0a
mov eax, dword [0x48d3a0]
cmp byte [eax], 0
jne 0x464f0a
mov dl, 0xa
mov ax, 0xd
call fcn.0042d52c
test eax, eax
je 0x46566c
mov ecx, dword [0x48d830]
xor edx, edx
mov al, byte [ebp - 1]
call fcn.0041ac5c
test ebx, ebx
je 0x464edf
push 0x465678
mov eax, dword [0x48d830]
push eax
call sub.kernel32.dll_lstrcatA
push ebx
mov eax, dword [0x48d830]
push eax
call sub.kernel32.dll_lstrcatA
push 0x46567c
mov eax, dword [0x48d830]
push eax
call sub.kernel32.dll_lstrcatA
mov ax, 0x1d
call fcn.0040bc04
mov edx, dword [0x48d830]
call fcn.0040f5a0
mov eax, dword [0x48da44]
mov edx, 0x77
call fcn.00411d74
test al, al
je 0x46566c
movsx eax, byte [ebp - 1]
add eax, 0x40
mov byte [ebp - 0x35], al
mov al, byte [ebp - 0x35]
call fcn.00418604
call fcn.004185a4
fistp qword [ebp - 0x18]
wait
fild qword [ebp - 0x18]
fcomp dword [0x465680]
fnstsw ax
sahf
je 0x464f42
lea eax, [ebp - 0x240]
call fcn.00412584
test al, al
je 0x464f5a
mov ax, 0x1c
call fcn.0040bc04
mov edx, 3
call fcn.00411d74
jmp 0x46566c
movsx eax, byte [ebp - 1]
mov edx, dword [0x48d340]
lea edx, [edx + eax - 1]
lea ecx, [ebp - 0x34]
mov al, byte [ebp - 1]
call fcn.0041ab60
test al, al
je 0x46566c
cmp byte [ebp - 0x34], 2
jne 0x464f99
mov ax, 0x2fb
call fcn.0040bc04
mov edx, 3
call fcn.00411d74
jmp 0x46566c
cmp byte [ebp + 8], 0
jne 0x464fd3
mov eax, dword [0x48d550]
cmp byte [eax + 0x192a], 0
jne 0x464fd3
mov ax, 0x2f4
call fcn.0040bc04
mov edx, 0x24
call fcn.00411d74
mov eax, dword [0x48d91c]
mov al, byte [eax]
mov edx, dword [0x48d550]
mov byte [edx + 0x192a], al
cmp byte [ebp + 8], 0
je 0x464fe6
call fcn.0041b380
test al, al
je 0x46566c
movsx eax, byte [ebp - 1]
mov edx, dword [0x48d340]
mov al, byte [edx + eax - 1]
cmp al, 1
je 0x46502c
movsx edx, byte [ebp - 1]
mov ecx, dword [0x48d340]
cmp al, 2
je 0x46502c
mov dword [ebp - 0x20], 0x7fffffff
xor eax, eax
mov dword [ebp - 0x1c], eax
fild qword [ebp - 0x20]
fmul dword [0x465684]
fild dword [ebp - 8]
fsubp st(1)
fadd dword [0x465684]
fistp qword [ebp - 0x20]
wait
jmp 0x465038
mov dword [ebp - 0x20], 0x40000000
xor eax, eax
mov dword [ebp - 0x1c], eax
fild qword [ebp - 0x18]
fild qword [ebp - 0x20]
fcompp
fnstsw ax
sahf
jae 0x465056
movsx eax, byte [ebp - 1]
mov edx, dword [0x48d340]
cmp byte [edx + eax - 1], 0xff
jne 0x46506b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 1
jmp 0x465082
fild qword [ebp - 0x18]
fsub dword [0x465688]
fild qword [ebp - 0x20]
fdivp st(1)
call fcn.004028ac
inc eax
mov dword [ebp - 0x2c], eax
cmp byte [ebp + 8], 0
je 0x4650b1
mov ax, 0xfb
call fcn.0040bc04
mov edx, eax
mov eax, dword [0x48d948]
call fcn.00405c48
mov eax, dword [0x48d948]
xor edx, edx
call fcn.0040e810
mov eax, dword [0x48db70]
mov byte [eax], 1
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x46552e
mov dword [ebp - 0x3c], eax
mov edi, 1
mov ax, 0x267
call fcn.0040bc04
mov edx, eax
lea eax, [ebp - 0x240]
call fcn.00405c48
mov al, byte [ebp - 0x35]
mov byte [ebp - 0x240], al
cmp dword [ebp - 0x2c], 1
jle 0x4651d4
push 0x465678
lea eax, [ebp - 0x240]
push eax
call sub.kernel32.dll_lstrcatA
mov dword [ebp - 0x264], edi
fild dword [ebp - 0x264]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ax, 0x1dd
call fcn.0040bc04
call fcn.0040f4d4
fild dword [ebp - 0x2c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [0x48da44]
call fcn.0040f4d4
mov eax, dword [0x48da44]
push eax
lea eax, [ebp - 0x240]
push eax
call sub.kernel32.dll_lstrcatA
push 0x46567c
lea eax, [ebp - 0x240]
push eax
call sub.kernel32.dll_lstrcatA
mov dword [ebp - 0x264], edi
fild dword [ebp - 0x264]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ax, 0x1dd
call fcn.0040bc04
call fcn.0040f4d4
fild dword [ebp - 0x2c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [0x48da44]
call fcn.0040f4d4
mov ax, 0xfb
call fcn.0040bc04
mov edx, eax
mov eax, dword [0x48d948]
call fcn.00405c48
push 0x46568c
mov eax, dword [0x48d948]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [0x48da44]
push eax
mov eax, dword [0x48d948]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [0x48d948]
push eax
mov eax, dword [0x48db04]
mov eax, dword [eax]
push eax
call sub.user32.dll_SetWindowTextA
cmp byte [ebp + 8], 0
jne 0x4651ec
push 0x7f02
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
push 0
lea eax, [ebp - 0x240]
push eax
call sub.kernel32.dll__lcreat
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x465215
lea edx, [ebp - 0x240]
mov ax, 0xa
call fcn.0040de10
jmp 0x46566c
mov eax, dword [0x48d2b0]
cmp byte [eax], 0
je 0x4652a7
mov al, byte [ebp - 1]
call fcn.0040cdd0
mov eax, dword [0x48da44]
push eax
call sub.kernel32.dll_GetFileAttributesA
test ah, 8
je 0x4652a7
mov word [ebp - 0x32], 0
push 3
xor ecx, ecx
mov dx, 0x10
mov eax, 9
call fcn.00419a0c
mov esi, eax
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 2
lea eax, [ebp - 0x32]
push eax
push esi
push ebx
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4652a7
call sub.kernel32.dll_GetLastError_1
call fcn.0040f5f0
mov eax, dword [0x48da44]
mov edx, 1
call fcn.00411d74
mov ax, 0x2fb
call fcn.0040bc04
mov edx, 3
call fcn.00411d74
jmp 0x46566c
cmp byte [ebp + 8], 0
je 0x465407
mov byte [ebp - 0x33], 0
push 1
lea eax, [ebp - 0x33]
push eax
push ebx
call sub.kernel32.dll__hwrite
push ebx
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [0x48d370]
lea eax, [ebp - 0x140]
call fcn.00405c48
lea edx, [ebp - 0x240]
mov eax, dword [0x48d370]
call fcn.00405c48
mov eax, dword [0x48d75c]
mov byte [eax], 1
mov eax, dword [0x48d954]
mov byte [eax], 1
mov eax, dword [0x48dbe0]
mov byte [eax], 1
cmp byte [ebp + 8], 0
je 0x46530e
mov eax, dword [0x48d968]
mov byte [eax], 1
call fcn.0046096c
mov ebx, eax
mov eax, dword [0x48d968]
mov byte [eax], 0
test bx, bx
jle 0x46566c
lea edx, [ebp - 0x140]
mov eax, dword [0x48d370]
call fcn.00405c48
movsx eax, bx
mov edx, dword [0x48d524]
mov eax, dword [edx + eax*4 - 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
xor edx, edx
mov dword [eax + 0x48c], edx
mov dword [eax + 0x490], edx
cmp dword [ebp - 0x2c], 1
je 0x465362
cmp edi, dword [ebp - 0x2c]
jge 0x465377
fild qword [ebp - 0x20]
fsub dword [0x465688]
mov eax, dword [ebp - 0x40]
fistp qword [eax + 0x494]
wait
jmp 0x4653c3
mov al, byte [ebp - 0x35]
call fcn.00418604
call fcn.004185a4
fsub dword [0x465688]
mov eax, dword [ebp - 0x40]
fistp qword [eax + 0x494]
wait
mov eax, dword [ebp - 0x40]
movsx eax, byte [eax + 0x55d]
mov edx, dword [0x48d340]
cmp byte [edx + eax - 1], 0xff
je 0x4653c3
fild dword [ebp - 8]
mov eax, dword [ebp - 0x40]
fild qword [eax + 0x494]
faddp st(1)
mov eax, dword [ebp - 0x40]
fistp qword [eax + 0x494]
wait
mov esi, 1
mov ebx, dword [0x48d550]
add ebx, 0x1d7a
cmp byte [ebx], 0
je 0x4653ed
mov ecx, esi
mov eax, dword [ebp - 0x40]
xor edx, edx
call fcn.00476b9c
test al, al
je 0x465524
mov eax, dword [0x48d9fc]
cmp byte [eax], 0
jne 0x465524
inc esi
inc ebx
cmp esi, 4
jne 0x4653d4
jmp 0x465524
cmp dword [ebp - 0x2c], 1
je 0x465412
cmp edi, dword [ebp - 0x2c]
jge 0x465422
mov eax, dword [0x48d318]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
cmp edi, dword [ebp - 0x2c]
jne 0x465442
mov al, byte [ebp - 0x35]
call fcn.00418604
call fcn.004185a4
fsub dword [0x465688]
mov eax, dword [0x48d318]
fistp qword [eax]
wait
push 0
mov eax, dword [0x48d318]
call fcn.0040fdb8
push eax
mov eax, dword [0x48d318]
push dword [eax + 4]
push dword [eax]
call fcn.0040fdac
push eax
push ebx
call sub.kernel32.dll_SetFilePointer_1
push ebx
call sub.kernel32.dll_SetEndOfFile_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4654c3
call sub.kernel32.dll_GetLastError_1
call fcn.0040f5f0
mov eax, dword [0x48da44]
mov edx, 1
call fcn.00411d74
push ebx
call sub.kernel32.dll_CloseHandle_1
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
lea edx, [ebp - 0x240]
mov ax, 0xa
call fcn.0040de10
lea eax, [ebp - 0x240]
push eax
call sub.kernel32.dll_DeleteFileA_1
jmp 0x46552e
push ebx
call sub.kernel32.dll_CloseHandle_1
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
lea edx, [ebp - 0x240]
mov eax, dword [0x48d370]
call fcn.00405c48
mov eax, dword [0x48d550]
cmp byte [eax + 0x18b9], 0
je 0x465503
mov eax, dword [0x48d2d4]
mov byte [eax], 1
jmp 0x46550b
mov eax, dword [0x48d75c]
mov byte [eax], 1
mov eax, dword [0x48d968]
mov byte [eax], 1
call fcn.0046096c
mov eax, dword [0x48d968]
mov byte [eax], 0
mov byte [ebp - 9], 1
inc edi
dec dword [ebp - 0x3c]
jne 0x4650c4
mov eax, dword [0x48db70]
mov byte [eax], 0
cmp byte [ebp + 8], 0
je 0x46566c
mov al, byte [ebp - 0x35]
call fcn.00418604
call fcn.004185a4
fistp qword [ebp - 0x28]
wait
xor edi, edi
inc edi
mov eax, dword [0x48d524]
mov eax, dword [eax + edi*4 - 4]
mov dword [0x49c0b4], eax
cmp dword [0x49c0b4], 0
je 0x46558c
mov eax, dword [0x49c0b4]
cmp byte [eax + 0x554], 0
je 0x46558c
push 0
push 0
push 0x10
mov eax, dword [0x49c0b4]
mov eax, dword [eax]
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [0x48d330]
movsx eax, word [eax]
cmp edi, eax
jne 0x465553
call fcn.0040eb04
fild qword [ebp - 0x28]
fcomp dword [0x465680]
fnstsw ax
sahf
jbe 0x465633
mov eax, dword [0x48d9fc]
cmp byte [eax], 0
jne 0x465633
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.00412abc
mov edx, dword [0x48da44]
mov eax, dword [0x48d830]
call fcn.00405c48
mov ax, 0x32d
call fcn.0040bc04
mov edx, dword [0x48d830]
call fcn.0040f5a0
mov edx, dword [0x48da44]
mov eax, dword [0x48d830]
call fcn.00405c48
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00412abc
mov edx, dword [0x48da44]
lea eax, [ebp - 0x260]
call fcn.00405c48
lea edx, [ebp - 0x260]
mov eax, dword [0x48d830]
call fcn.0040f5a0
mov eax, dword [0x48da44]
mov edx, 3
call fcn.00411d74
mov eax, dword [0x48d9fc]
cmp byte [eax], 0
jne 0x465668
mov eax, dword [0x48d3a0]
cmp byte [eax], 0
jne 0x465668
fild qword [ebp - 0x28]
fcomp dword [0x465680]
fnstsw ax
sahf
jne 0x465668
mov ax, 0x13a
call fcn.0040bc04
mov edx, 4
call fcn.00411d74
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4