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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a87b
mov eax, dword fs:[0]
push eax
mov eax, 0x1f08
call fcn.0041a6a0
mov eax, dword [section..data]
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 dword [ebp - 0x1ee4], ecx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, 0x80000001
push 0x3e9
push dword [0x42579c]
mov dword [ebp - 0x1ed8], ebx
call esi
push 0x3ea
push dword [0x42579c]
mov dword [ebp - 0x1ef8], eax
call esi
push 0x3eb
push dword [0x42579c]
mov dword [ebp - 0x1edc], 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
call fcn.004011a0
lea ecx, [ebp - 0x1ef0]
call fcn.004012f0
cmp eax, 0x100000
jb 0x402f37
push 0
push 0x100000
lea ecx, [ebp - 0x1ef0]
call fcn.004012b0
push 0x10
lea eax, [ebp - 0x1ea0]
push eax
lea ecx, [ebp - 0x1ef0]
call fcn.00401250
cmp eax, 0x10
jne 0x402f2c
mov eax, dword [ebp - 0x1e94]
cmp eax, 0x20
ja 0x402f27
lea ecx, [ebp - 0x1ea0]
cmp dword [ecx], 0x49525542
jne 0x4024bf
cmp dword [ecx + 4], 0x41204f4b
jne 0x4024bf
cmp dword [ecx + 8], 0x30324352
jne 0x4024bf
mov edi, 1
jmp 0x4024c1
xor edi, edi
mov esi, 0x20
mov dword [ebp - 0x1ed0], edi
xor ecx, ecx
lea edx, [esi + 0x60]
test edi, edi
je 0x4024f2
mul edx
mov dword [ebp - 0x1ecc], ecx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403ecc
mov dword [ebp - 0x1ec8], eax
jmp 0x402511
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403ecc
mov dword [ebp - 0x1ecc], eax
mov dword [ebp - 0x1ec8], 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.00403ecc
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1ec0], ebx
xor ecx, ecx
mov dword [ebx + ecx*4], 0
inc ecx
mov edx, dword [ebp - 0x1e94]
cmp ecx, edx
jbe 0x402540
test edi, edi
lea ecx, [ebp - 0x1ef0]
mov eax, 0x80
cmovne esi, eax
mov eax, dword [ebp - 0x1ecc]
imul esi, edx
test edi, edi
mov edi, dword [ebp - 0x1ec8]
cmovne eax, edi
push esi
push eax
call fcn.00401250
cmp eax, esi
jne 0x402edd
lea eax, [esi + 0x100010]
xor ecx, ecx
mov dword [ebp - 0x1ef4], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x1ec4], ecx
mov dword [ebp - 0x1ebc], eax
cmp dword [ebp - 0x1e94], eax
jbe 0x402871
mov edi, dword [ebp - 0x1ecc]
mov ebx, dword [ebp - 0x1ec8]
nop dword [eax + eax]
cmp dword [ebp - 0x1ed0], 0
mov edx, ebx
push ecx
cmove edx, edi
lea ecx, [ebp - 0x630]
call fcn.004039e0
add esp, 4
lea ecx, [ebp - 0x630]
call fcn.00403be0
mov ecx, str.bgi.hvl
lea eax, [ebp - 0x630]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402611
test dl, dl
je 0x40260d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402611
add eax, 2
add ecx, 2
test dl, dl
jne 0x4025f1
xor eax, eax
jmp 0x402616
sbb eax, eax
or eax, 1
test eax, eax
je 0x40262e
inc esi
sub ebx, 0xffffff80
add edi, 0x20
cmp esi, dword [ebp - 0x1e94]
jb 0x4025c0
jmp 0x402871
cmp dword [ebp - 0x1ed0], 0
je 0x402646
mov eax, dword [ebp - 0x1ec8]
shl esi, 7
mov eax, dword [esi + eax + 0x60]
jmp 0x402653
mov eax, dword [ebp - 0x1ecc]
shl esi, 5
mov eax, dword [esi + eax + 0x10]
add eax, dword [ebp - 0x1ef4]
lea ecx, [ebp - 0x1ef0]
push 0
push eax
call fcn.004012b0
test eax, eax
je 0x402871
push 0x10
lea eax, [ebp - 0x1eb0]
push eax
lea ecx, [ebp - 0x1ef0]
call fcn.00401250
cmp eax, 0x10
jne 0x402871
lea eax, [ebp - 0x1eb0]
mov edx, 0x40
cmp dword [eax], 0x5f564842
jne 0x40270a
cmp dword [eax + 4], 0x5f5f3256
jne 0x40270a
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mov edx, 0x100
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403ecc
mov esi, dword [ebp - 0x1ea4]
lea ecx, [ebp - 0x1ef0]
add esp, 4
shl esi, 8
mov edi, eax
push esi
push edi
call fcn.00401250
cmp eax, esi
jne 0x4026fc
mov eax, dword [ebp - 0x1ea4]
mov ecx, edi
mov dword [ebp - 0x1ebc], eax
mov dword [ebp - 0x1ec4], ecx
jmp 0x40281a
push edi
call fcn.00403e97
add esp, 4
jmp 0x402871
lea eax, [ebp - 0x1eb0]
cmp dword [eax], 0x5f564842
jne 0x402871
cmp dword [eax + 4], 0x5f5f5f5f
jne 0x402871
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403ecc
mov esi, dword [ebp - 0x1ea4]
lea ecx, [ebp - 0x1ef0]
add esp, 4
shl esi, 6
mov edi, eax
mov dword [ebp - 0x1eb8], edi
push esi
push edi
call fcn.00401250
cmp eax, esi
jne 0x402805
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mov edx, 0x100
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403ecc
mov ecx, dword [ebp - 0x1ea4]
mov esi, eax
shl ecx, 8
push ecx
push 0
push esi
mov dword [ebp - 0x1ec4], esi
call fcn.00405720
mov eax, dword [ebp - 0x1ea4]
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x1ebc], eax
test eax, eax
je 0x402805
mov edi, esi
mov esi, dword [ebp - 0x1eb8]
nop dword [eax]
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 0x4027c6
mov eax, dword [esi + 0x38]
inc ebx
mov ecx, dword [esi + 0x3c]
add esi, 0x40
mov dword [edi + 0xf8], eax
mov dword [edi + 0xfc], ecx
add edi, 0x100
mov eax, dword [ebp - 0x1ea4]
mov dword [ebp - 0x1ebc], eax
cmp ebx, eax
jb 0x4027c0
mov edi, dword [ebp - 0x1eb8]
push edi
call fcn.00403e97
mov eax, dword [ebp - 0x1ebc]
add esp, 4
mov ecx, dword [ebp - 0x1ec4]
cmp eax, 1
jb 0x402871
mov ebx, ecx
mov dword [ebp - 0x1eb8], eax
nop word [eax + eax]
mov ecx, dword [ebx + 0xfc]
mov edx, ebx
mov eax, dword [ebx + 0xf8]
mov dword [ebp - 0x1c], ecx
push ecx
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x20], eax
call fcn.004039e0
mov edi, ebx
lea esi, [ebp - 0x118]
add esp, 4
mov ecx, 0x40
add ebx, 0x100
sub dword [ebp - 0x1eb8], 1
rep movsd dword es:[edi], dword [esi]
jne 0x402830
mov esi, dword [ebp - 0x1edc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x40289c
push 0xffff
push 0
push 0x406
push esi
call edi
push 0
push 0
push 0x402
push esi
call edi
mov ebx, dword [ebp - 0x1f00]
test ebx, ebx
je 0x4028c2
push dword [ebp - 0x1e94]
push 0
push 0x406
push ebx
call edi
push 0
push 0
push 0x402
push ebx
call edi
call fcn.00402300
test eax, eax
je 0x4028d5
mov dword [0x425fa4], 1
push 0x100000
call fcn.00403ecc
add esp, 4
mov dword [ebp - 0x1ee0], eax
cmp dword [ebp - 0x1e94], 0
mov dword [ebp - 0x1eb4], 0
jbe 0x402dac
mov esi, dword [ebp - 0x1ecc]
mov ebx, dword [ebp - 0x1ec8]
add esi, 0x14
add ebx, 0x64
mov dword [ebp - 0x1f04], esi
mov dword [ebp - 0x1eb8], ebx
nop dword [eax]
cmp dword [0x425fa4], 0
jne 0x402da4
cmp dword [0x425fa8], 0
jne 0x402da4
cmp dword [ebp - 0x1ed0], 0
je 0x402948
mov eax, dword [ebx - 4]
jmp 0x40294b
mov eax, dword [esi - 4]
add eax, dword [ebp - 0x1ef4]
lea ecx, [ebp - 0x1ef0]
push 0
push eax
call fcn.004012b0
test eax, eax
je 0x402d9a
xor eax, eax
mov dword [ebp - 0x1ed4], 0
mov dword [ebp - 0x1efc], eax
cmp dword [ebp - 0x1ed0], eax
je 0x40298c
mov eax, dword [ebp - 0x1eb8]
add ebx, 0xffffff9c
jmp 0x402991
lea ebx, [esi - 0x14]
mov eax, esi
mov eax, dword [eax]
mov edx, ebx
push ecx
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x1f14], eax
call fcn.004039e0
add esp, 4
lea ecx, [ebp - 0x630]
call fcn.00403be0
xor esi, esi
cmp dword [ebp - 0x1ebc], esi
jbe 0x402a7b
mov edi, dword [ebp - 0x1ec4]
nop dword [eax]
push edi
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x1260]
push eax
call fcn.004010a0
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x1260]
push eax
lea eax, [ebp - 0x93c]
push str._s_s
push eax
call fcn.00401860
add esp, 0x1c
lea ecx, [ebp - 0x93c]
call fcn.00403be0
lea eax, [ebp - 0x93c]
lea ecx, [ebp - 0x630]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x402a40
test dl, dl
je 0x402a3c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x402a40
add ecx, 2
add eax, 2
test dl, dl
jne 0x402a20
xor eax, eax
jmp 0x402a45
sbb eax, eax
or eax, 1
test eax, eax
je 0x402a5e
inc esi
add edi, 0x100
cmp esi, dword [ebp - 0x1ebc]
jb 0x4029d0
jmp 0x402a75
mov ebx, dword [ebp - 0x1ec4]
shl esi, 8
add ebx, esi
lea eax, [ebx + 0xf8]
mov dword [ebp - 0x1efc], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov edx, ebx
lea ecx, [ebp - 0x93c]
call fcn.00403bc0
call fcn.00403be0
lea edx, [ebp - 0x93c]
mov ecx, str.bgi.hvl
call fcn.00403b90
test eax, eax
jne 0x402ac4
push 2
call fcn.00403ecc
mov ecx, dword [ebp - 0x1ec0]
add esp, 4
mov esi, dword [ebp - 0x1eb4]
mov dword [ecx + esi*4], eax
xor ecx, ecx
mov word [eax], cx
jmp 0x402d1f
mov edx, ebx
xor ecx, ecx
call fcn.00403960
cmp dword [ebp - 0x1ef8], 0
mov esi, eax
mov ebx, dword [ebp - 0x1eb4]
mov eax, dword [ebp - 0x1ec0]
mov dword [eax + ebx*4], esi
je 0x402b15
mov ecx, 8
call fcn.004018a0
push esi
push eax
lea eax, [ebp - 0x1878]
push eax
call fcn.004017f0
add esp, 0xc
lea eax, [ebp - 0x1878]
push eax
push dword [ebp - 0x1ef8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp - 0x1edc]
test eax, eax
je 0x402b2b
push 0
push 0
push 0x402
push eax
call edi
call fcn.00402300
test eax, eax
jne 0x402d9a
lea ecx, [ebp - 0x1f10]
call fcn.00401000
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1ec0]
push dword [eax + ebx*4]
lea eax, [ebp - 0xf54]
push dword [ebp - 0x1ee4]
push str._s_s.tmp
push eax
call fcn.004017f0
add esp, 0x10
lea eax, [ebp - 0xf54]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ecx
lea eax, [ebp - 0xf54]
push eax
lea ecx, [ebp - 0x1f10]
call fcn.004011f0
test eax, eax
je 0x402d78
mov ebx, dword [ebp - 0x1f14]
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x18], xmm0
mov esi, 0x100000
test ebx, ebx
je 0x402c94
nop dword [eax]
nop dword [eax + eax]
cmp dword [0x425fa4], 0
jne 0x402c7a
cmp dword [0x425fa8], 0
jne 0x402c7a
mov eax, ebx
lea ecx, [ebp - 0x1ef0]
sub eax, edi
cmp esi, eax
cmova esi, eax
push esi
push dword [ebp - 0x1ee0]
call fcn.00401250
cmp eax, esi
jne 0x402c8d
mov edx, dword [ebp - 0x1ee0]
lea ecx, [ebp - 0x18]
push esi
call fcn.00401b40
add esp, 4
lea ecx, [ebp - 0x1f10]
push esi
push dword [ebp - 0x1ee0]
call fcn.00401280
cmp eax, esi
jne 0x402c82
add edi, esi
cmp dword [ebp - 0x1edc], 0
je 0x402c57
mov ecx, 0xffff
mov eax, edi
mul ecx
push 0
push ebx
push edx
push eax
call fcn.0041a300
push 0
push eax
push 0x402
push dword [ebp - 0x1edc]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00402300
test eax, eax
jne 0x402c70
cmp edi, ebx
jb 0x402bc0
mov ebx, dword [ebp - 0x1ed4]
jmp 0x402c96
mov dword [0x425fa4], 1
mov ebx, dword [ebp - 0x1ed4]
jmp 0x402c96
mov ecx, 0x80000004
mov dword [ebp - 0x1ed8], ecx
mov ebx, 1
jmp 0x402c96
mov ebx, edi
lea ecx, [ebp - 0x1f10]
call fcn.00401230
cmp dword [0x425fa4], 0
jne 0x402d83
cmp dword [0x425fa8], 0
jne 0x402d83
test ebx, ebx
jne 0x402d83
mov ecx, dword [ebp - 0x1efc]
test ecx, ecx
je 0x402ce6
lea edx, [ebp - 0x18]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x402d83
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
jne 0x402d83
mov ecx, dword [ebp - 0x1f00]
mov esi, dword [ebp - 0x1eb4]
test ecx, ecx
je 0x402d08
push 0
lea eax, [esi + 1]
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00402300
test eax, eax
jne 0x402d5d
mov byte [ebp - 4], al
lea ecx, [ebp - 0x1f10]
call fcn.00401050
mov eax, dword [ebp - 0x1eb4]
mov ebx, dword [ebp - 0x1eb8]
inc eax
mov esi, dword [ebp - 0x1f04]
sub ebx, 0xffffff80
add esi, 0x20
mov dword [ebp - 0x1eb4], eax
mov dword [ebp - 0x1eb8], ebx
mov dword [ebp - 0x1f04], esi
cmp eax, dword [ebp - 0x1e94]
jae 0x402da4
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x402920
mov dword [0x425fa4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f10]
call fcn.00401050
jmp 0x402dae
mov ecx, 0x80000004
mov dword [ebp - 0x1ed8], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f10]
call fcn.00401050
mov esi, dword [ebp - 0x1eb4]
jmp 0x402dae
mov dword [0x425fa4], 1
mov esi, dword [ebp - 0x1eb4]
jmp 0x402dae
xor esi, esi
push dword [ebp - 0x1ee0]
call fcn.00403e97
mov eax, dword [ebp - 0x1e94]
add esp, 4
cmp esi, eax
jne 0x402e81
cmp dword [0x425fa4], 0
jne 0x402e81
cmp dword [0x425fa8], 0
jne 0x402e81
xor esi, esi
test eax, eax
je 0x402e79
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x1ec0]
nop word [eax + eax]
mov ecx, dword [ebx + esi*4]
test ecx, ecx
je 0x402e74
cmp word [ecx], 0
je 0x402e74
push ecx
push dword [ebp - 0x1ee4]
lea eax, [ebp - 0x1878]
push str._s_s.tmp
push eax
call fcn.004017f0
push dword [ebx + esi*4]
lea eax, [ebp - 0xf54]
push dword [ebp - 0x1ee4]
push 0x421b70
push eax
call fcn.004017f0
add esp, 0x20
lea eax, [ebp - 0xf54]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
lea eax, [ebp - 0xf54]
push eax
lea eax, [ebp - 0x1878]
push eax
call edi
test eax, eax
mov eax, dword [ebp - 0x1e94]
je 0x402f1d
inc esi
cmp esi, eax
jb 0x402e00
xor ecx, ecx
mov dword [ebp - 0x1ed8], ecx
mov ebx, dword [ebp - 0x1ec0]
xor esi, esi
test eax, eax
je 0x402ec9
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx + esi*4]
test ecx, ecx
je 0x402ec4
push ecx
push dword [ebp - 0x1ee4]
lea eax, [ebp - 0xf54]
push str._s_s.tmp
push eax
call fcn.004017f0
add esp, 0x10
lea eax, [ebp - 0xf54]
push eax
call edi
mov eax, dword [ebp - 0x1e94]
inc esi
cmp esi, eax
jb 0x402e93
push dword [ebp - 0x1ec4]
call fcn.00403e97
mov edi, dword [ebp - 0x1ec8]
add esp, 4
xor esi, esi
cmp dword [ebp - 0x1e94], esi
jbe 0x402efb
push dword [ebx + esi*4]
call fcn.00403e97
inc esi
add esp, 4
cmp esi, dword [ebp - 0x1e94]
jb 0x402ee7
push ebx
call fcn.00403e97
push dword [ebp - 0x1ecc]
call fcn.00403e97
push edi
call fcn.00403e97
mov ebx, dword [ebp - 0x1ed8]
add esp, 0xc
jmp 0x402f2c
mov ecx, 0x80000004
jmp 0x402e7b
mov ebx, 0x80000002
lea ecx, [ebp - 0x1ef0]
call fcn.00401230
cmp dword [0x425fa4], 0
mov eax, 0x80000007
cmovne ebx, eax
cmp dword [0x425fa8], 0
mov eax, 0x80000006
cmovne ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1ef0]
call fcn.00401050
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.00403e58
mov esp, ebp
pop ebp
ret