Function at 0x4024c0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b246
mov eax, dword fs:[0]
push eax
mov eax, 0x1f08
call fcn.004040e0
mov eax, dword [0x425024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, 0x80000001
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push dword [0x425b30]
mov dword [ebp - 0x1ee4], eax
mov dword [ebp - 0x1edc], ebx
call esi
push 0x3ea
push dword [0x425b30]
mov dword [ebp - 0x1ef8], eax
call esi
push 0x3eb
push dword [0x425b30]
mov dword [ebp - 0x1ee0], eax
call esi
mov dword [ebp - 0x1f00], eax
lea eax, [ebp - 0x1e90]
push 0x30c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x1ef0]
call fcn.00401000
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1e90]
push eax
lea ecx, [ebp - 0x1ef0]
call fcn.00401230
lea ecx, [ebp - 0x1ef0]
call fcn.00401220
cmp eax, 0x100000
jb 0x403094
push 0
push 0x100000
lea ecx, [ebp - 0x1ef0]
call fcn.00401300
push 0x10
lea eax, [ebp - 0x1ea0]
push eax
lea ecx, [ebp - 0x1ef0]
call fcn.004012d0
cmp eax, 0x10
jne 0x403089
mov eax, dword [ebp - 0x1e94]
cmp eax, 0x20
ja 0x403084
lea ecx, [ebp - 0x1ea0]
cmp dword [ecx], 0x49525542
jne 0x4025f8
cmp dword [ecx + 4], 0x41204f4b
jne 0x4025f8
cmp dword [ecx + 8], 0x30324352
jne 0x4025f8
mov edi, 1
jmp 0x4025fa
xor edi, edi
mov esi, 0x20
mov dword [ebp - 0x1ecc], edi
xor ecx, ecx
lea edx, [esi + 0x60]
test edi, edi
je 0x40262b
mul edx
mov dword [ebp - 0x1ec8], ecx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404160
mov dword [ebp - 0x1ec4], eax
jmp 0x40264a
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404160
mov dword [ebp - 0x1ec8], eax
mov dword [ebp - 0x1ec4], 0
mov eax, dword [ebp - 0x1e94]
xor ecx, ecx
add esp, 4
mov edx, 4
lea eax, [eax + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404160
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1ed4], ebx
xor ecx, ecx
nop dword [eax]
mov dword [ebx + ecx*4], 0
inc ecx
mov edx, dword [ebp - 0x1e94]
cmp ecx, edx
jbe 0x402680
test edi, edi
lea ecx, [ebp - 0x1ef0]
mov eax, 0x80
cmovne esi, eax
mov eax, dword [ebp - 0x1ec8]
imul esi, edx
test edi, edi
mov edi, dword [ebp - 0x1ec4]
cmovne eax, edi
push esi
push eax
call fcn.004012d0
cmp eax, esi
jne 0x40303a
lea eax, [esi + 0x100010]
xor ecx, ecx
mov dword [ebp - 0x1ef4], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x1ed8], ecx
mov dword [ebp - 0x1ec0], eax
cmp dword [ebp - 0x1e94], eax
jbe 0x4029b2
mov edi, dword [ebp - 0x1ec8]
mov ebx, dword [ebp - 0x1ec4]
nop dword [eax + eax]
cmp dword [ebp - 0x1ecc], 0
mov eax, ebx
push 1
cmove eax, edi
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.00403980
lea eax, [ebp - 0x630]
push eax
call fcn.00403e10
add esp, 0x10
lea eax, [ebp - 0x630]
mov ecx, str.bgi.hvl
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402755
test dl, dl
je 0x402751
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402755
add eax, 2
add ecx, 2
test dl, dl
jne 0x402735
xor eax, eax
jmp 0x40275a
sbb eax, eax
or eax, 1
test eax, eax
je 0x402772
inc esi
sub ebx, 0xffffff80
add edi, 0x20
cmp esi, dword [ebp - 0x1e94]
jb 0x402700
jmp 0x4029b2
cmp dword [ebp - 0x1ecc], 0
je 0x40278a
mov eax, dword [ebp - 0x1ec4]
shl esi, 7
mov eax, dword [esi + eax + 0x60]
jmp 0x402797
mov eax, dword [ebp - 0x1ec8]
shl esi, 5
mov eax, dword [esi + eax + 0x10]
add eax, dword [ebp - 0x1ef4]
lea ecx, [ebp - 0x1ef0]
push 0
push eax
call fcn.00401300
test eax, eax
je 0x4029b2
push 0x10
lea eax, [ebp - 0x1eb0]
push eax
lea ecx, [ebp - 0x1ef0]
call fcn.004012d0
cmp eax, 0x10
jne 0x4029b2
lea eax, [ebp - 0x1eb0]
mov edx, 0x40
cmp dword [eax], 0x5f564842
jne 0x40284e
cmp dword [eax + 4], 0x5f5f3256
jne 0x40284e
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mov edx, 0x100
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404160
mov esi, dword [ebp - 0x1ea4]
lea ecx, [ebp - 0x1ef0]
add esp, 4
shl esi, 8
mov edi, eax
push esi
push edi
call fcn.004012d0
cmp eax, esi
jne 0x402840
mov eax, dword [ebp - 0x1ea4]
mov ecx, edi
mov dword [ebp - 0x1ec0], eax
mov dword [ebp - 0x1ed8], ecx
jmp 0x40295a
push edi
call fcn.00404169
add esp, 4
jmp 0x4029b2
lea eax, [ebp - 0x1eb0]
cmp dword [eax], 0x5f564842
jne 0x4029b2
cmp dword [eax + 4], 0x5f5f5f5f
jne 0x4029b2
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404160
mov esi, dword [ebp - 0x1ea4]
lea ecx, [ebp - 0x1ef0]
add esp, 4
shl esi, 6
mov edi, eax
mov dword [ebp - 0x1ebc], edi
push esi
push edi
call fcn.004012d0
cmp eax, esi
jne 0x402945
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mov edx, 0x100
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00404160
mov ecx, dword [ebp - 0x1ea4]
mov esi, eax
shl ecx, 8
push ecx
push 0
push esi
mov dword [ebp - 0x1ed8], esi
call fcn.00405860
mov eax, dword [ebp - 0x1ea4]
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x1ec0], eax
test eax, eax
je 0x402945
mov edi, esi
mov esi, dword [ebp - 0x1ebc]
mov edx, edi
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x402906
mov eax, dword [esi + 0x38]
inc ebx
mov dword [edi + 0xf8], eax
mov eax, dword [esi + 0x3c]
add esi, 0x40
mov dword [edi + 0xfc], eax
add edi, 0x100
mov eax, dword [ebp - 0x1ea4]
mov dword [ebp - 0x1ec0], eax
cmp ebx, eax
jb 0x402900
mov edi, dword [ebp - 0x1ebc]
push edi
call fcn.00404169
mov eax, dword [ebp - 0x1ec0]
add esp, 4
mov ecx, dword [ebp - 0x1ed8]
cmp eax, 1
jb 0x4029b2
test eax, eax
je 0x4029b2
mov ebx, ecx
mov dword [ebp - 0x1ebc], eax
nop dword [eax + eax]
mov eax, dword [ebx + 0xf8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xfc]
push 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.00403980
mov edi, ebx
lea esi, [ebp - 0x118]
add esp, 0xc
mov ecx, 0x40
add ebx, 0x100
sub dword [ebp - 0x1ebc], 1
rep movsd dword es:[edi], dword [esi]
jne 0x402970
mov esi, dword [ebp - 0x1ee0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x4029dd
push 0xffff
push 0
push 0x406
push esi
call ebx
push 0
push 0
push 0x402
push esi
call ebx
mov esi, dword [ebp - 0x1f00]
test esi, esi
je 0x402a03
push dword [ebp - 0x1e94]
push 0
push 0x406
push esi
call ebx
push 0
push 0
push 0x402
push esi
call ebx
call fcn.00402110
mov ecx, dword [0x425b38]
test eax, eax
mov edx, 1
cmovne ecx, edx
push 0x100000
mov dword [0x425b38], ecx
call fcn.00404160
add esp, 4
mov dword [ebp - 0x1eb8], eax
cmp dword [ebp - 0x1e94], 0
mov dword [ebp - 0x1eb4], 0
jbe 0x402f0d
mov edi, dword [ebp - 0x1ec8]
mov ebx, dword [ebp - 0x1ec4]
add edi, 0x14
add ebx, 0x64
mov dword [ebp - 0x1f04], edi
mov dword [ebp - 0x1ebc], ebx
nop word [eax + eax]
cmp dword [0x425b38], 0
jne 0x402eff
cmp dword [0x425b34], 0
jne 0x402eff
cmp dword [ebp - 0x1ecc], 0
je 0x402a98
mov eax, dword [ebx - 4]
jmp 0x402a9b
mov eax, dword [edi - 4]
add eax, dword [ebp - 0x1ef4]
lea ecx, [ebp - 0x1ef0]
push 0
push eax
call fcn.00401300
test eax, eax
je 0x402ef5
xor esi, esi
mov dword [ebp - 0x1ed0], 0
mov dword [ebp - 0x1efc], esi
cmp dword [ebp - 0x1ecc], esi
je 0x402adc
mov eax, dword [ebp - 0x1ebc]
add ebx, 0xffffff9c
jmp 0x402ae1
lea ebx, [edi - 0x14]
mov eax, edi
mov eax, dword [eax]
push 1
mov dword [ebp - 0x1f14], eax
lea eax, [ebp - 0x630]
push ebx
push eax
call fcn.00403980
lea eax, [ebp - 0x630]
push eax
call fcn.00403e10
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x1ec0], esi
jbe 0x402bbe
mov esi, dword [ebp - 0x1ed8]
nop dword [eax + eax]
push esi
lea eax, [ebp - 0xf54]
push eax
lea eax, [ebp - 0x1260]
push eax
push 0
push 0
call fcn.004010b0
lea eax, [ebp - 0xf54]
push eax
lea eax, [ebp - 0x1260]
push eax
lea eax, [ebp - 0x324]
push str._s_s
push eax
call fcn.004034b0
lea eax, [ebp - 0x324]
push eax
call fcn.00403e10
add esp, 0x28
lea eax, [ebp - 0x324]
lea ecx, [ebp - 0x630]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402b92
test dl, dl
je 0x402b8e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402b92
add ecx, 2
add eax, 2
test dl, dl
jne 0x402b72
xor eax, eax
jmp 0x402b97
sbb eax, eax
or eax, 1
test eax, eax
je 0x402bb0
inc edi
add esi, 0x100
cmp edi, dword [ebp - 0x1ec0]
jb 0x402b20
jmp 0x402bbe
mov ebx, esi
add esi, 0xf8
mov dword [ebp - 0x1efc], esi
lea eax, [ebp - 0x324]
push ebx
push eax
call fcn.00403df0
lea eax, [ebp - 0x324]
push eax
call fcn.00403e10
lea eax, [ebp - 0x324]
push eax
push str.bgi.hvl
call fcn.00403db0
add esp, 0x14
test eax, eax
jne 0x402c12
push 2
call fcn.00404160
mov edx, dword [ebp - 0x1ed4]
add esp, 4
mov ecx, dword [ebp - 0x1eb4]
mov dword [edx + ecx*4], eax
xor edx, edx
mov word [eax], dx
jmp 0x402e71
push ebx
push 0
call fcn.00403a80
mov ebx, dword [ebp - 0x1eb4]
add esp, 8
cmp dword [ebp - 0x1ef8], 0
mov esi, eax
mov edi, dword [ebp - 0x1ed4]
mov dword [edi + ebx*4], esi
je 0x402c62
push 8
call fcn.00401ad0
push esi
push eax
lea eax, [ebp - 0x1878]
push eax
call fcn.004030f0
add esp, 0x10
lea eax, [ebp - 0x1878]
push eax
push dword [ebp - 0x1ef8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp - 0x1ee0]
test eax, eax
je 0x402c7c
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00402110
test eax, eax
jne 0x402ef5
lea ecx, [ebp - 0x1f10]
call fcn.00401000
mov byte [ebp - 4], 1
lea eax, [ebp - 0xc48]
push dword [edi + ebx*4]
push dword [ebp - 0x1ee4]
push str._s_s.tmp
push eax
call fcn.004030f0
add esp, 0x10
lea eax, [ebp - 0xc48]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 0xc48]
push eax
lea ecx, [ebp - 0x1f10]
call fcn.00401280
test eax, eax
je 0x402ecd
mov ebx, dword [ebp - 0x1f14]
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x18], xmm0
mov esi, 0x100000
test ebx, ebx
je 0x402dd7
cmp dword [0x425b38], 0
jne 0x402dbd
cmp dword [0x425b34], 0
jne 0x402dbd
mov eax, ebx
lea ecx, [ebp - 0x1ef0]
sub eax, edi
cmp esi, eax
cmovbe eax, esi
mov esi, eax
push esi
push dword [ebp - 0x1eb8]
call fcn.004012d0
cmp eax, esi
jne 0x402dd0
push esi
push dword [ebp - 0x1eb8]
lea eax, [ebp - 0x18]
push eax
call fcn.00401850
add esp, 0xc
lea ecx, [ebp - 0x1f10]
push esi
push dword [ebp - 0x1eb8]
call fcn.00401340
cmp eax, esi
jne 0x402dc5
add edi, esi
cmp dword [ebp - 0x1ee0], 0
je 0x402d9a
mov ecx, 0xffff
mov eax, edi
mul ecx
push 0
push ebx
push edx
push eax
call fcn.00404370
push 0
push eax
push 0x402
push dword [ebp - 0x1ee0]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00402110
test eax, eax
jne 0x402db3
cmp edi, ebx
jb 0x402d00
mov ebx, dword [ebp - 0x1ed0]
jmp 0x402dd9
mov dword [0x425b38], 1
mov ebx, dword [ebp - 0x1ed0]
jmp 0x402dd9
mov ecx, 0x80000004
mov dword [ebp - 0x1edc], ecx
mov ebx, 1
jmp 0x402dd9
mov ebx, edi
lea ecx, [ebp - 0x1f10]
call fcn.00401090
cmp dword [0x425b38], 0
jne 0x402ed8
cmp dword [0x425b34], 0
jne 0x402ed8
test ebx, ebx
jne 0x402ed8
mov ecx, dword [ebp - 0x1efc]
test ecx, ecx
je 0x402e32
lea edx, [ebp - 0x18]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x402e25
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
jne 0x402e25
xor eax, eax
jmp 0x402e2a
mov eax, 1
test eax, eax
jne 0x402ed8
mov ecx, dword [ebp - 0x1f00]
mov esi, dword [ebp - 0x1eb4]
test ecx, ecx
je 0x402e54
push 0
lea eax, [esi + 1]
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00402110
test eax, eax
jne 0x402eac
mov byte [ebp - 4], al
lea ecx, [ebp - 0x1f10]
call fcn.00401020
mov ecx, dword [ebp - 0x1eb4]
mov ebx, dword [ebp - 0x1ebc]
inc ecx
mov edi, dword [ebp - 0x1f04]
sub ebx, 0xffffff80
add edi, 0x20
mov dword [ebp - 0x1eb4], ecx
mov dword [ebp - 0x1ebc], ebx
mov dword [ebp - 0x1f04], edi
cmp ecx, dword [ebp - 0x1e94]
jb 0x402a70
mov eax, dword [ebp - 0x1eb8]
mov esi, ecx
jmp 0x402f0f
mov dword [0x425b38], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f10]
call fcn.00401020
mov eax, dword [ebp - 0x1eb8]
jmp 0x402f0f
mov ecx, 0x80000004
mov dword [ebp - 0x1edc], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f10]
call fcn.00401020
mov eax, dword [ebp - 0x1eb8]
mov esi, dword [ebp - 0x1eb4]
jmp 0x402f0f
mov dword [0x425b38], 1
mov eax, dword [ebp - 0x1eb8]
mov esi, dword [ebp - 0x1eb4]
jmp 0x402f0f
xor esi, esi
push eax
call fcn.00404169
mov eax, dword [ebp - 0x1e94]
add esp, 4
cmp esi, eax
jne 0x402fd7
cmp dword [0x425b38], 0
jne 0x402fd7
cmp dword [0x425b34], 0
jne 0x402fd7
xor esi, esi
test eax, eax
je 0x402fcf
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x1ed4]
mov ecx, dword [ebx + esi*4]
test ecx, ecx
je 0x402fca
cmp word [ecx], 0
je 0x402fca
push ecx
push dword [ebp - 0x1ee4]
lea eax, [ebp - 0x1878]
push str._s_s.tmp
push eax
call fcn.004030f0
push dword [ebx + esi*4]
lea eax, [ebp - 0xc48]
push dword [ebp - 0x1ee4]
push 0x41d150
push eax
call fcn.004030f0
add esp, 0x20
lea eax, [ebp - 0xc48]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
lea eax, [ebp - 0xc48]
push eax
lea eax, [ebp - 0x1878]
push eax
call edi
test eax, eax
mov eax, dword [ebp - 0x1e94]
je 0x40307a
inc esi
cmp esi, eax
jb 0x402f56
xor ecx, ecx
mov dword [ebp - 0x1edc], ecx
mov ebx, dword [ebp - 0x1ed4]
xor esi, esi
test eax, eax
je 0x403026
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [eax]
mov ecx, dword [ebx + esi*4]
test ecx, ecx
je 0x403021
push ecx
push dword [ebp - 0x1ee4]
lea eax, [ebp - 0xc48]
push str._s_s.tmp
push eax
call fcn.004030f0
add esp, 0x10
lea eax, [ebp - 0xc48]
push eax
call edi
mov eax, dword [ebp - 0x1e94]
inc esi
cmp esi, eax
jb 0x402ff0
push dword [ebp - 0x1ed8]
call fcn.00404169
mov edi, dword [ebp - 0x1ec4]
add esp, 4
xor esi, esi
cmp dword [ebp - 0x1e94], esi
jbe 0x403058
push dword [ebx + esi*4]
call fcn.00404169
inc esi
add esp, 4
cmp esi, dword [ebp - 0x1e94]
jb 0x403044
push ebx
call fcn.00404169
push dword [ebp - 0x1ec8]
call fcn.00404169
push edi
call fcn.00404169
mov ebx, dword [ebp - 0x1edc]
add esp, 0xc
jmp 0x403089
mov ecx, 0x80000004
jmp 0x402fd1
mov ebx, 0x80000002
lea ecx, [ebp - 0x1ef0]
call fcn.00401090
cmp dword [0x425b38], 0
mov eax, 0x80000007
cmovne ebx, eax
cmp dword [0x425b34], 0
mov eax, 0x80000006
cmovne ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ef0]
call fcn.00401020
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004040c8
mov esp, ebp
pop ebp
ret