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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bdbb
mov eax, dword fs:[0]
push eax
mov eax, 0x1f08
call fcn.004065a0
mov eax, dword [0x457024]
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 [0x457c28]
mov dword [ebp - 0x1ee4], eax
mov dword [ebp - 0x1edc], ebx
call esi
push 0x3ea
push dword [0x457c28]
mov dword [ebp - 0x1ef8], eax
call esi
push 0x3eb
push dword [0x457c28]
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.00401360
lea ecx, [ebp - 0x1ef0]
call fcn.00401260
cmp eax, 0x100000
jb 0x403d34
push 0
push 0x100000
lea ecx, [ebp - 0x1ef0]
call fcn.00401480
push 0x10
lea eax, [ebp - 0x1ea0]
push eax
lea ecx, [ebp - 0x1ef0]
call fcn.00401450
cmp eax, 0x10
jne 0x403d29
mov eax, dword [ebp - 0x1e94]
cmp eax, 0x20
ja 0x403d24
lea ecx, [ebp - 0x1ea0]
cmp dword [ecx], 0x49525542
jne 0x403298
cmp dword [ecx + 4], 0x41204f4b
jne 0x403298
cmp dword [ecx + 8], 0x30324352
jne 0x403298
mov edi, 1
jmp 0x40329a
xor edi, edi
mov esi, 0x20
mov dword [ebp - 0x1ecc], edi
xor ecx, ecx
lea edx, [esi + 0x60]
test edi, edi
je 0x4032cb
mul edx
mov dword [ebp - 0x1ec8], ecx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406625
mov dword [ebp - 0x1ec4], eax
jmp 0x4032ea
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406625
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.00406625
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 0x403320
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.00401450
cmp eax, esi
jne 0x403cda
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 0x403652
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.00404d00
lea eax, [ebp - 0x630]
push eax
call fcn.00405cd0
add esp, 0x10
lea eax, [ebp - 0x630]
mov ecx, str.bgi.hvl
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4033f5
test dl, dl
je 0x4033f1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4033f5
add eax, 2
add ecx, 2
test dl, dl
jne 0x4033d5
xor eax, eax
jmp 0x4033fa
sbb eax, eax
or eax, 1
test eax, eax
je 0x403412
inc esi
sub ebx, 0xffffff80
add edi, 0x20
cmp esi, dword [ebp - 0x1e94]
jb 0x4033a0
jmp 0x403652
cmp dword [ebp - 0x1ecc], 0
je 0x40342a
mov eax, dword [ebp - 0x1ec4]
shl esi, 7
mov eax, dword [esi + eax + 0x60]
jmp 0x403437
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.00401480
test eax, eax
je 0x403652
push 0x10
lea eax, [ebp - 0x1eb0]
push eax
lea ecx, [ebp - 0x1ef0]
call fcn.00401450
cmp eax, 0x10
jne 0x403652
lea eax, [ebp - 0x1eb0]
mov edx, 0x40
cmp dword [eax], 0x5f564842
jne 0x4034ee
cmp dword [eax + 4], 0x5f5f3256
jne 0x4034ee
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mov edx, 0x100
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406625
mov esi, dword [ebp - 0x1ea4]
lea ecx, [ebp - 0x1ef0]
add esp, 4
shl esi, 8
mov edi, eax
push esi
push edi
call fcn.00401450
cmp eax, esi
jne 0x4034e0
mov eax, dword [ebp - 0x1ea4]
mov ecx, edi
mov dword [ebp - 0x1ec0], eax
mov dword [ebp - 0x1ed8], ecx
jmp 0x4035fa
push edi
call fcn.0040662e
add esp, 4
jmp 0x403652
lea eax, [ebp - 0x1eb0]
cmp dword [eax], 0x5f564842
jne 0x403652
cmp dword [eax + 4], 0x5f5f5f5f
jne 0x403652
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406625
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.00401450
cmp eax, esi
jne 0x4035e5
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mov edx, 0x100
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406625
mov ecx, dword [ebp - 0x1ea4]
mov esi, eax
shl ecx, 8
push ecx
push 0
push esi
mov dword [ebp - 0x1ed8], esi
call fcn.00408460
mov eax, dword [ebp - 0x1ea4]
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x1ec0], eax
test eax, eax
je 0x4035e5
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 0x4035a6
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 - 0x1ec0], eax
cmp ebx, eax
jb 0x4035a0
mov edi, dword [ebp - 0x1ebc]
push edi
call fcn.0040662e
mov eax, dword [ebp - 0x1ec0]
add esp, 4
mov ecx, dword [ebp - 0x1ed8]
cmp eax, 1
jb 0x403652
mov ebx, ecx
mov dword [ebp - 0x1ebc], eax
nop word [eax + eax]
mov eax, dword [ebx + 0xf8]
mov ecx, dword [ebx + 0xfc]
push 1
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x118]
push ebx
push eax
mov dword [ebp - 0x1c], ecx
call fcn.00404d00
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 0x403610
mov esi, dword [ebp - 0x1ee0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x40367d
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 0x4036a3
push dword [ebp - 0x1e94]
push 0
push 0x406
push esi
call ebx
push 0
push 0
push 0x402
push esi
call ebx
call fcn.00402db0
mov ecx, dword [0x457c30]
test eax, eax
mov edx, 1
cmovne ecx, edx
push 0x100000
mov dword [0x457c30], ecx
call fcn.00406625
add esp, 4
mov dword [ebp - 0x1eb8], eax
cmp dword [ebp - 0x1e94], 0
mov dword [ebp - 0x1eb4], 0
jbe 0x403bad
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 [0x457c30], 0
jne 0x403b9f
cmp dword [0x457c2c], 0
jne 0x403b9f
cmp dword [ebp - 0x1ecc], 0
je 0x403738
mov eax, dword [ebx - 4]
jmp 0x40373b
mov eax, dword [edi - 4]
add eax, dword [ebp - 0x1ef4]
lea ecx, [ebp - 0x1ef0]
push 0
push eax
call fcn.00401480
test eax, eax
je 0x403b95
xor esi, esi
mov dword [ebp - 0x1ed0], 0
mov dword [ebp - 0x1efc], esi
cmp dword [ebp - 0x1ecc], esi
je 0x40377c
mov eax, dword [ebp - 0x1ebc]
add ebx, 0xffffff9c
jmp 0x403781
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.00404d00
lea eax, [ebp - 0x630]
push eax
call fcn.00405cd0
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x1ec0], esi
jbe 0x40385e
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.004010c0
lea eax, [ebp - 0xf54]
push eax
lea eax, [ebp - 0x1260]
push eax
lea eax, [ebp - 0x324]
push 0x44d270
push eax
call fcn.00404150
lea eax, [ebp - 0x324]
push eax
call fcn.00405cd0
add esp, 0x28
lea eax, [ebp - 0x324]
lea ecx, [ebp - 0x630]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x403832
test dl, dl
je 0x40382e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x403832
add ecx, 2
add eax, 2
test dl, dl
jne 0x403812
xor eax, eax
jmp 0x403837
sbb eax, eax
or eax, 1
test eax, eax
je 0x403850
inc edi
add esi, 0x100
cmp edi, dword [ebp - 0x1ec0]
jb 0x4037c0
jmp 0x40385e
mov ebx, esi
add esi, 0xf8
mov dword [ebp - 0x1efc], esi
lea eax, [ebp - 0x324]
push ebx
push eax
call fcn.00405cb0
lea eax, [ebp - 0x324]
push eax
call fcn.00405cd0
lea eax, [ebp - 0x324]
push eax
push str.bgi.hvl
call fcn.00405c70
add esp, 0x14
test eax, eax
jne 0x4038b2
push 2
call fcn.00406625
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 0x403b11
push ebx
push 0
call fcn.00404e80
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 0x403902
push 8
call fcn.004025c0
push esi
push eax
lea eax, [ebp - 0x1878]
push eax
call fcn.00403d90
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 0x40391c
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00402db0
test eax, eax
jne 0x403b95
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.00403d90
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.00401400
test eax, eax
je 0x403b6d
mov ebx, dword [ebp - 0x1f14]
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x18], xmm0
mov esi, 0x100000
test ebx, ebx
je 0x403a77
cmp dword [0x457c30], 0
jne 0x403a5d
cmp dword [0x457c2c], 0
jne 0x403a5d
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.00401450
cmp eax, esi
jne 0x403a70
push esi
push dword [ebp - 0x1eb8]
lea eax, [ebp - 0x18]
push eax
call fcn.00401f10
add esp, 0xc
lea ecx, [ebp - 0x1f10]
push esi
push dword [ebp - 0x1eb8]
call fcn.004014e0
cmp eax, esi
jne 0x403a65
add edi, esi
cmp dword [ebp - 0x1ee0], 0
je 0x403a3a
mov ecx, 0xffff
mov eax, edi
mul ecx
push 0
push ebx
push edx
push eax
call fcn.00406950
push 0
push eax
push 0x402
push dword [ebp - 0x1ee0]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00402db0
test eax, eax
jne 0x403a53
cmp edi, ebx
jb 0x4039a0
mov ebx, dword [ebp - 0x1ed0]
jmp 0x403a79
mov dword [0x457c30], 1
mov ebx, dword [ebp - 0x1ed0]
jmp 0x403a79
mov ecx, 0x80000004
mov dword [ebp - 0x1edc], ecx
mov ebx, 1
jmp 0x403a79
mov ebx, edi
lea ecx, [ebp - 0x1f10]
call fcn.004010a0
cmp dword [0x457c30], 0
jne 0x403b78
cmp dword [0x457c2c], 0
jne 0x403b78
test ebx, ebx
jne 0x403b78
mov ecx, dword [ebp - 0x1efc]
test ecx, ecx
je 0x403ad2
lea edx, [ebp - 0x18]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x403ac5
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
jne 0x403ac5
xor eax, eax
jmp 0x403aca
mov eax, 1
test eax, eax
jne 0x403b78
mov ecx, dword [ebp - 0x1f00]
mov esi, dword [ebp - 0x1eb4]
test ecx, ecx
je 0x403af4
push 0
lea eax, [esi + 1]
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00402db0
test eax, eax
jne 0x403b4c
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 0x403710
mov eax, dword [ebp - 0x1eb8]
mov esi, ecx
jmp 0x403baf
mov dword [0x457c30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f10]
call fcn.00401020
mov eax, dword [ebp - 0x1eb8]
jmp 0x403baf
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 0x403baf
mov dword [0x457c30], 1
mov eax, dword [ebp - 0x1eb8]
mov esi, dword [ebp - 0x1eb4]
jmp 0x403baf
xor esi, esi
push eax
call fcn.0040662e
mov eax, dword [ebp - 0x1e94]
add esp, 4
cmp esi, eax
jne 0x403c77
cmp dword [0x457c30], 0
jne 0x403c77
cmp dword [0x457c2c], 0
jne 0x403c77
xor esi, esi
test eax, eax
je 0x403c6f
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x1ed4]
mov ecx, dword [ebx + esi*4]
test ecx, ecx
je 0x403c6a
cmp word [ecx], 0
je 0x403c6a
push ecx
push dword [ebp - 0x1ee4]
lea eax, [ebp - 0x1878]
push str._s_s.tmp
push eax
call fcn.00403d90
push dword [ebx + esi*4]
lea eax, [ebp - 0xc48]
push dword [ebp - 0x1ee4]
push 0x44d1b0
push eax
call fcn.00403d90
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 0x403d1a
inc esi
cmp esi, eax
jb 0x403bf6
xor ecx, ecx
mov dword [ebp - 0x1edc], ecx
mov ebx, dword [ebp - 0x1ed4]
xor esi, esi
test eax, eax
je 0x403cc6
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [eax]
mov ecx, dword [ebx + esi*4]
test ecx, ecx
je 0x403cc1
push ecx
push dword [ebp - 0x1ee4]
lea eax, [ebp - 0xc48]
push str._s_s.tmp
push eax
call fcn.00403d90
add esp, 0x10
lea eax, [ebp - 0xc48]
push eax
call edi
mov eax, dword [ebp - 0x1e94]
inc esi
cmp esi, eax
jb 0x403c90
push dword [ebp - 0x1ed8]
call fcn.0040662e
mov edi, dword [ebp - 0x1ec4]
add esp, 4
xor esi, esi
cmp dword [ebp - 0x1e94], esi
jbe 0x403cf8
push dword [ebx + esi*4]
call fcn.0040662e
inc esi
add esp, 4
cmp esi, dword [ebp - 0x1e94]
jb 0x403ce4
push ebx
call fcn.0040662e
push dword [ebp - 0x1ec8]
call fcn.0040662e
push edi
call fcn.0040662e
mov ebx, dword [ebp - 0x1edc]
add esp, 0xc
jmp 0x403d29
mov ecx, 0x80000004
jmp 0x403c71
mov ebx, 0x80000002
lea ecx, [ebp - 0x1ef0]
call fcn.004010a0
cmp dword [0x457c30], 0
mov eax, 0x80000007
cmovne ebx, eax
cmp dword [0x457c2c], 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.00406587
mov esp, ebp
pop ebp
ret