Function at 0x460e50
Capabilities:
Delete file
Move file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffaa4
mov dword [esp], ecx
mov edi, edx
mov ebx, eax
xor ebp, ebp
cmp bl, 1
je 0x460e6d
cmp bl, 3
jne 0x460e79
lea eax, [esp + 0x46]
mov edx, dword [esp]
call fcn.00405c48
test bl, bl
jne 0x460ead
mov dl, 0x2d
mov ax, 0x13
call fcn.0042d52c
mov edx, dword [0x48d498]
mov dword [edx], eax
mov eax, dword [0x48d498]
cmp dword [eax], 0
je 0x46164e
mov edx, dword [0x48dbdc]
lea eax, [esp + 0x46]
call fcn.00405c48
mov edx, dword [0x48d370]
lea eax, [esp + 0x246]
call fcn.00405c48
cmp bl, 2
jne 0x460f2e
mov edx, dword [0x48dbdc]
mov eax, dword [0x48d370]
call fcn.00405c48
mov al, 0x14
call fcn.0042aef4
test al, al
je 0x460f18
mov edx, dword [0x48d370]
mov eax, dword [0x48dbdc]
call fcn.00405c48
mov edx, dword [0x48dbdc]
lea eax, [esp + 0x46]
call fcn.00405c48
lea edx, [esp + 0x246]
mov eax, dword [0x48d370]
call fcn.00405c48
call fcn.00429414
mov edi, eax
jmp 0x460f2e
lea edx, [esp + 0x246]
mov eax, dword [0x48d370]
call fcn.00405c48
jmp 0x46164e
test di, di
jne 0x460f3a
call fcn.00429414
mov edi, eax
mov byte [esp + 0x45], 0
xor eax, eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 0
mov byte [esp + 0x458], 0
cmp byte [esp + 0x458], 0
je 0x460f73
mov byte [esp + 0x45], 1
lea edx, [esp + 0x458]
lea eax, [esp + 0x46]
call fcn.00405c48
jmp 0x460fc1
cmp bl, 1
jne 0x460f8e
movsx eax, di
mov edx, dword [0x48d524]
mov eax, dword [edx + eax*4 - 4]
cmp byte [eax + 0x82], 4
je 0x460fa5
mov eax, edi
call fcn.00412944
mov edx, eax
lea eax, [esp + 0x146]
call fcn.00405c48
jmp 0x460fc1
movsx eax, di
mov edx, dword [0x48d524]
mov eax, dword [edx + eax*4 - 4]
mov edx, dword [eax + 0x14]
lea eax, [esp + 0x146]
call fcn.00405c48
mov byte [esp + 0x458], 0
cmp bl, 1
jne 0x461038
lea edx, [esp + 0x146]
lea eax, [esp + 0x346]
call fcn.00405c48
lea eax, [esp + 0x346]
call fcn.0040fb28
call fcn.00405bdc
mov edx, dword [0x48d498]
mov dword [edx], eax
lea eax, [esp + 0x346]
call fcn.00405bdc
mov edx, dword [0x48d498]
sub eax, dword [edx]
mov byte [esp + eax + 0x346], 0x7e
lea eax, [esp + 0x346]
push eax
call sub.kernel32.dll_DeleteFileA_1
lea eax, [esp + 0x346]
push eax
lea eax, [esp + 0x14a]
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [esp + 0x146]
push eax
mov al, byte [esp + 0x49]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3a]
push eax
lea eax, [esp + 0x3f]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x46c]
push eax
lea eax, [esp + 0x42]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x494]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x88]
push eax
cmp bl, 1
sete al
lea ecx, [esp + 0x96]
xor edx, edx
call fcn.0044d770
test al, al
je 0x461625
cmp bl, 1
je 0x461209
cmp byte [esp + 0x45], 0
jne 0x461209
mov eax, dword [0x48d4b0]
mov edx, 0x14f
call fcn.00405a9c
mov eax, dword [0x48d390]
cmp byte [eax], 0
je 0x46116c
mov eax, dword [0x48d6f4]
cmp byte [eax], 3
jae 0x46116c
call fcn.00429414
mov edi, eax
cmp di, 0xffff
je 0x46164e
mov edx, 0x46165c
mov eax, dword [0x48d370]
call fcn.00405c48
mov eax, dword [0x48d550]
mov al, byte [eax + 0x18bb]
mov edx, dword [0x48d75c]
mov byte [edx], al
cmp byte [esp + 0x458], 0
je 0x461149
mov eax, dword [0x48d818]
mov byte [eax], 1
call fcn.0046096c
mov eax, dword [0x48d818]
mov byte [eax], 0
movsx eax, di
mov edx, dword [0x48d524]
cmp dword [edx + eax*4 - 4], 0
je 0x46164e
jmp 0x4611cb
mov eax, dword [0x48d390]
cmp byte [eax], 0
je 0x461192
mov eax, dword [0x48d6f4]
cmp byte [eax], 3
jne 0x461192
mov eax, dword [0x48d390]
mov byte [eax], 0
call fcn.0046096c
jmp 0x4615db
mov eax, dword [0x48d6f4]
cmp byte [eax], 1
jbe 0x4611ac
call fcn.0046096c
test ax, ax
jle 0x46164e
jmp 0x4611cb
push dword [esp + 0x14]
push dword [esp + 0x14]
mov eax, dword [0x48d370]
call fcn.00423aa8
call fcn.004606cc
test al, al
je 0x46164e
movsx eax, di
mov edx, dword [0x48d524]
mov eax, dword [edx + eax*4 - 4]
mov dx, word [esp + 0x1a]
mov word [eax + 0x510], dx
movsx edx, di
mov ecx, dword [0x48d524]
mov edx, dword [esp + 0x20]
mov dword [eax + 0x1a0], edx
movsx edx, di
mov ecx, dword [0x48d524]
mov byte [eax + 0x544], 0
jmp 0x46122d
mov edi, dword [0x48d930]
mov di, word [edi]
mov eax, dword [0x48d390]
cmp byte [eax], 0
je 0x46122d
mov eax, dword [0x48d6f4]
cmp byte [eax], 3
jne 0x46122d
mov eax, edi
call fcn.00460d04
cmp bl, 1
jne 0x46123f
lea eax, [esp + 0x346]
push eax
call sub.kernel32.dll_DeleteFileA_1
movsx eax, di
mov edx, dword [0x48d524]
mov esi, dword [edx + eax*4 - 4]
mov dl, 1
lea eax, [esi + 0xc]
call fcn.00423b80
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x54], eax
mov eax, dword [0x48d6f4]
cmp byte [eax], 3
je 0x461298
mov eax, dword [esp + 0x28]
mov dword [esi + 0x190], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x194], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x198], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x19c], eax
jmp 0x4612b7
cmp byte [esp + 0x45], 0
jne 0x4612b7
lea eax, [esi + 0x190]
push eax
call sub.kernel32.dll_GetSystemTimeAsFileTime
lea eax, [esi + 0x198]
push eax
call sub.kernel32.dll_GetSystemTimeAsFileTime
mov byte [esi + 0x8f], 0
cmp byte [esp + 0x45], 0
jne 0x461395
cmp byte [esp + 0x26], 2
je 0x4612f5
mov ecx, dword [0x48da44]
mov ax, word [esp + 0x24]
dec eax
mov edx, dword [esp + 0xc]
call fcn.0044f120
test al, al
jne 0x4612f5
mov word [esp + 0x24], 0
mov byte [esp + 0x26], 0
mov ax, word [esp + 0x24]
mov word [esi + 0x538], ax
mov al, byte [esp + 0x26]
mov byte [esi + 0x551], al
mov eax, dword [esp + 0xc]
mov dword [esi + 0x17c], eax
cmp byte [esi + 0x55d], 0
jne 0x461395
mov eax, dword [esp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1c], eax
fild qword [esp + 0x10]
fsub dword [0x461660]
fild qword [esi + 0x188]
fcompp
fnstsw ax
sahf
jbe 0x461395
fild qword [esi + 0x18]
fsub dword [0x461664]
add esp, 0xfffffff8
fistp qword [esp]
wait
movzx eax, word [esi + 0x50e]
mov dword [esp + 0x560], eax
fild dword [esp + 0x560]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.0040fe38
mov dword [esp + 0x558], eax
fild dword [esp + 0x558]
fild qword [esp + 0x10]
fsubrp st(1)
fsub dword [0x461664]
fistp qword [esi + 0x188]
wait
cmp bl, 1
jne 0x461415
mov al, byte [esp + 0x27]
mov byte [esi + 0x55e], al
push esi
push edi
lea edi, [esi + 0x48c]
lea esi, [esp + 0x450]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp byte [esi + 0x82], 4
je 0x461415
cmp byte [esi + 0x55d], 0
jne 0x461415
mov byte [esi + 0x82], 3
mov byte [esi + 0x8c], 1
mov eax, dword [esi + 0x84]
test eax, eax
je 0x461415
push 0x4000
mov edx, dword [esi + 0x88]
push edx
push eax
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
mov dword [esi + 0x84], eax
lea eax, [esi + 0xc]
call fcn.00424898
test al, al
jne 0x461415
mov byte [esi + 0x565], 0
call fcn.00444994
mov eax, dword [0x48d390]
cmp byte [eax], 0
je 0x461429
mov eax, dword [0x48d6f4]
cmp byte [eax], 3
jb 0x46143f
cmp byte [esi + 0x55d], 0
je 0x461513
cmp bl, 1
jne 0x461513
mov eax, dword [0x48d6f4]
cmp byte [eax], 2
jae 0x461465
mov byte [esi + 0x8c], 1
mov byte [esi + 0x82], 2
mov byte [esi + 0x55e], 1
mov byte [esi + 0x55f], 1
mov ax, word [esp + 0x1c]
mov word [esi + 0x80], ax
mov eax, dword [0x48d390]
cmp byte [eax], 0
je 0x4614f8
mov eax, dword [0x48d300]
mov eax, dword [eax]
sub eax, dword [esp + 4]
mov edx, dword [0x48d778]
add eax, dword [edx]
mov dword [esi + 0x170], eax
mov eax, dword [esi + 0x170]
call fcn.0040fd30
movsx eax, byte [esi + 0x55d]
mov edx, dword [0x48d9a0]
movzx eax, word [edx + eax*2 + 0x4c]
mov dword [esp + 0x558], eax
fild dword [esp + 0x558]
fmulp st(1)
fistp qword [esi + 0x188]
wait
movzx eax, word [esi + 0x50e]
mov dword [esp + 0x558], eax
fild dword [esp + 0x558]
fild qword [esi + 0x188]
fdivrp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0040fd80
inc eax
mov dword [esi + 0x16c], eax
movsx eax, word [esi + 0x534]
mov edx, dword [0x48d524]
mov eax, dword [edx + eax*4 - 4]
call fcn.0047d4c8
call fcn.00444994
cmp byte [esi + 0x55d], 0
jne 0x461539
mov eax, dword [0x48d6f4]
cmp byte [eax], 2
jae 0x461539
mov byte [esi + 0x55e], 1
mov byte [esi + 0x55f], 1
call fcn.00444994
mov eax, dword [0x48d6f4]
cmp byte [eax], 2
jae 0x4615b5
mov eax, dword [0x48d390]
cmp byte [eax], 0
setne al
mov byte [esp + 0x18], al
cmp bl, 1
je 0x4615b5
xor eax, eax
mov al, byte [esp + 0x18]
mov edx, dword [0x48d550]
cmp byte [edx + eax + 0x1940], 0
je 0x4615b5
xor eax, eax
mov al, byte [esp + 0x18]
add ax, 0x125
call fcn.0040bc04
mov edx, eax
mov eax, dword [0x48da44]
call fcn.00405c48
mov eax, dword [0x48da44]
mov edx, 0x24
call fcn.00411d74
xor eax, eax
mov al, byte [esp + 0x18]
mov edx, dword [0x48d550]
mov ecx, dword [0x48d91c]
mov cl, byte [ecx]
xor cl, 1
mov byte [edx + eax + 0x1940], cl
cmp bl, 1
jne 0x4615db
mov eax, dword [0x48d390]
cmp byte [eax], 0
jne 0x4615db
movsx eax, di
mov edx, dword [0x48d524]
mov eax, dword [edx + eax*4 - 4]
call fcn.0047d4c8
call fcn.00444994
cmp byte [esp + 0x458], 0
je 0x46164c
mov eax, dword [0x48d550]
cmp byte [eax + 0x189b], 0
jne 0x460f52
mov ax, 0x2c9
call fcn.0040bc04
lea edx, [esp + 0x458]
call fcn.0040f5a0
mov eax, dword [0x48da44]
mov edx, 2
call fcn.00411d74
cmp al, 1
je 0x460f52
jmp 0x46164c
cmp bl, 1
jne 0x46164c
lea eax, [esp + 0x146]
push eax
call sub.kernel32.dll_DeleteFileA_1
lea eax, [esp + 0x146]
push eax
lea eax, [esp + 0x34a]
push eax
call sub.kernel32.dll_MoveFileA
mov ebp, edi
mov eax, ebp
add esp, 0x55c
pop ebp
pop edi
pop esi
pop ebx
ret