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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45519b
mov eax, dword fs:[0]
push eax
mov eax, 0x1f08
call fcn.004065f0
mov eax, dword [0x462024]
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 [0x462c28]
mov dword [ebp - 0x1ee4], eax
mov dword [ebp - 0x1edc], ebx
call esi
push 0x3ea
push dword [0x462c28]
mov dword [ebp - 0x1ef8], eax
call esi
push 0x3eb
push dword [0x462c28]
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 0x403d94
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 0x403d89
mov eax, dword [ebp - 0x1e94]
cmp eax, 0x20
ja 0x403d84
lea ecx, [ebp - 0x1ea0]
cmp dword [ecx], 0x49525542
jne 0x4032f8
cmp dword [ecx + 4], 0x41204f4b
jne 0x4032f8
cmp dword [ecx + 8], 0x30324352
jne 0x4032f8
mov edi, 1
jmp 0x4032fa
xor edi, edi
mov esi, 0x20
mov dword [ebp - 0x1ecc], edi
xor ecx, ecx
lea edx, [esi + 0x60]
test edi, edi
je 0x40332b
mul edx
mov dword [ebp - 0x1ec8], ecx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406675
mov dword [ebp - 0x1ec4], eax
jmp 0x40334a
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406675
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.00406675
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 0x403380
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 0x403d3a
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 0x4036b2
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.00404d50
lea eax, [ebp - 0x630]
push eax
call fcn.00405d20
add esp, 0x10
lea eax, [ebp - 0x630]
mov ecx, str.bgi.hvl
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403455
test dl, dl
je 0x403451
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403455
add eax, 2
add ecx, 2
test dl, dl
jne 0x403435
xor eax, eax
jmp 0x40345a
sbb eax, eax
or eax, 1
test eax, eax
je 0x403472
inc esi
sub ebx, 0xffffff80
add edi, 0x20
cmp esi, dword [ebp - 0x1e94]
jb 0x403400
jmp 0x4036b2
cmp dword [ebp - 0x1ecc], 0
je 0x40348a
mov eax, dword [ebp - 0x1ec4]
shl esi, 7
mov eax, dword [esi + eax + 0x60]
jmp 0x403497
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 0x4036b2
push 0x10
lea eax, [ebp - 0x1eb0]
push eax
lea ecx, [ebp - 0x1ef0]
call fcn.00401450
cmp eax, 0x10
jne 0x4036b2
lea eax, [ebp - 0x1eb0]
mov edx, 0x40
cmp dword [eax], 0x5f564842
jne 0x40354e
cmp dword [eax + 4], 0x5f5f3256
jne 0x40354e
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mov edx, 0x100
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406675
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 0x403540
mov eax, dword [ebp - 0x1ea4]
mov ecx, edi
mov dword [ebp - 0x1ec0], eax
mov dword [ebp - 0x1ed8], ecx
jmp 0x40365a
push edi
call fcn.0040667e
add esp, 4
jmp 0x4036b2
lea eax, [ebp - 0x1eb0]
cmp dword [eax], 0x5f564842
jne 0x4036b2
cmp dword [eax + 4], 0x5f5f5f5f
jne 0x4036b2
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406675
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 0x403645
mov eax, dword [ebp - 0x1ea4]
xor ecx, ecx
mov edx, 0x100
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406675
mov ecx, dword [ebp - 0x1ea4]
mov esi, eax
shl ecx, 8
push ecx
push 0
push esi
mov dword [ebp - 0x1ed8], esi
call fcn.004084b0
mov eax, dword [ebp - 0x1ea4]
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 0x1ec0], eax
test eax, eax
je 0x403645
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 0x403606
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 0x403600
mov edi, dword [ebp - 0x1ebc]
push edi
call fcn.0040667e
mov eax, dword [ebp - 0x1ec0]
add esp, 4
mov ecx, dword [ebp - 0x1ed8]
cmp eax, 1
jb 0x4036b2
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.00404d50
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 0x403670
mov esi, dword [ebp - 0x1ee0]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x4036dd
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 0x403703
push dword [ebp - 0x1e94]
push 0
push 0x406
push esi
call ebx
push 0
push 0
push 0x402
push esi
call ebx
call fcn.00402e10
mov ecx, dword [0x462c30]
test eax, eax
mov edx, 1
cmovne ecx, edx
push 0x100000
mov dword [0x462c30], ecx
call fcn.00406675
add esp, 4
mov dword [ebp - 0x1eb8], eax
cmp dword [ebp - 0x1e94], 0
mov dword [ebp - 0x1eb4], 0
jbe 0x403c0d
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 [0x462c30], 0
jne 0x403bff
cmp dword [0x462c2c], 0
jne 0x403bff
cmp dword [ebp - 0x1ecc], 0
je 0x403798
mov eax, dword [ebx - 4]
jmp 0x40379b
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 0x403bf5
xor esi, esi
mov dword [ebp - 0x1ed0], 0
mov dword [ebp - 0x1efc], esi
cmp dword [ebp - 0x1ecc], esi
je 0x4037dc
mov eax, dword [ebp - 0x1ebc]
add ebx, 0xffffff9c
jmp 0x4037e1
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.00404d50
lea eax, [ebp - 0x630]
push eax
call fcn.00405d20
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x1ec0], esi
jbe 0x4038be
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 0x457418
push eax
call fcn.004041a0
lea eax, [ebp - 0x324]
push eax
call fcn.00405d20
add esp, 0x28
lea eax, [ebp - 0x324]
lea ecx, [ebp - 0x630]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x403892
test dl, dl
je 0x40388e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x403892
add ecx, 2
add eax, 2
test dl, dl
jne 0x403872
xor eax, eax
jmp 0x403897
sbb eax, eax
or eax, 1
test eax, eax
je 0x4038b0
inc edi
add esi, 0x100
cmp edi, dword [ebp - 0x1ec0]
jb 0x403820
jmp 0x4038be
mov ebx, esi
add esi, 0xf8
mov dword [ebp - 0x1efc], esi
lea eax, [ebp - 0x324]
push ebx
push eax
call fcn.00405d00
lea eax, [ebp - 0x324]
push eax
call fcn.00405d20
lea eax, [ebp - 0x324]
push eax
push str.bgi.hvl
call fcn.00405cc0
add esp, 0x14
test eax, eax
jne 0x403912
push 2
call fcn.00406675
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 0x403b71
push ebx
push 0
call fcn.00404ed0
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 0x403962
push 9
call fcn.004025d0
push esi
push eax
lea eax, [ebp - 0x1878]
push eax
call fcn.00403df0
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 0x40397c
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00402e10
test eax, eax
jne 0x403bf5
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.00403df0
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 0x403bcd
mov ebx, dword [ebp - 0x1f14]
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x18], xmm0
mov esi, 0x100000
test ebx, ebx
je 0x403ad7
cmp dword [0x462c30], 0
jne 0x403abd
cmp dword [0x462c2c], 0
jne 0x403abd
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 0x403ad0
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 0x403ac5
add edi, esi
cmp dword [ebp - 0x1ee0], 0
je 0x403a9a
mov ecx, 0xffff
mov eax, edi
mul ecx
push 0
push ebx
push edx
push eax
call fcn.004069a0
push 0
push eax
push 0x402
push dword [ebp - 0x1ee0]
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00402e10
test eax, eax
jne 0x403ab3
cmp edi, ebx
jb 0x403a00
mov ebx, dword [ebp - 0x1ed0]
jmp 0x403ad9
mov dword [0x462c30], 1
mov ebx, dword [ebp - 0x1ed0]
jmp 0x403ad9
mov ecx, 0x80000004
mov dword [ebp - 0x1edc], ecx
mov ebx, 1
jmp 0x403ad9
mov ebx, edi
lea ecx, [ebp - 0x1f10]
call fcn.004010a0
cmp dword [0x462c30], 0
jne 0x403bd8
cmp dword [0x462c2c], 0
jne 0x403bd8
test ebx, ebx
jne 0x403bd8
mov ecx, dword [ebp - 0x1efc]
test ecx, ecx
je 0x403b32
lea edx, [ebp - 0x18]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x403b25
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 4]
jne 0x403b25
xor eax, eax
jmp 0x403b2a
mov eax, 1
test eax, eax
jne 0x403bd8
mov ecx, dword [ebp - 0x1f00]
mov esi, dword [ebp - 0x1eb4]
test ecx, ecx
je 0x403b54
push 0
lea eax, [esi + 1]
push eax
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.00402e10
test eax, eax
jne 0x403bac
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 0x403770
mov eax, dword [ebp - 0x1eb8]
mov esi, ecx
jmp 0x403c0f
mov dword [0x462c30], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f10]
call fcn.00401020
mov eax, dword [ebp - 0x1eb8]
jmp 0x403c0f
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 0x403c0f
mov dword [0x462c30], 1
mov eax, dword [ebp - 0x1eb8]
mov esi, dword [ebp - 0x1eb4]
jmp 0x403c0f
xor esi, esi
push eax
call fcn.0040667e
mov eax, dword [ebp - 0x1e94]
add esp, 4
cmp esi, eax
jne 0x403cd7
cmp dword [0x462c30], 0
jne 0x403cd7
cmp dword [0x462c2c], 0
jne 0x403cd7
xor esi, esi
test eax, eax
je 0x403ccf
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x1ed4]
mov ecx, dword [ebx + esi*4]
test ecx, ecx
je 0x403cca
cmp word [ecx], 0
je 0x403cca
push ecx
push dword [ebp - 0x1ee4]
lea eax, [ebp - 0x1878]
push str._s_s.tmp
push eax
call fcn.00403df0
push dword [ebx + esi*4]
lea eax, [ebp - 0xc48]
push dword [ebp - 0x1ee4]
push 0x457358
push eax
call fcn.00403df0
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 0x403d7a
inc esi
cmp esi, eax
jb 0x403c56
xor ecx, ecx
mov dword [ebp - 0x1edc], ecx
mov ebx, dword [ebp - 0x1ed4]
xor esi, esi
test eax, eax
je 0x403d26
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [eax]
mov ecx, dword [ebx + esi*4]
test ecx, ecx
je 0x403d21
push ecx
push dword [ebp - 0x1ee4]
lea eax, [ebp - 0xc48]
push str._s_s.tmp
push eax
call fcn.00403df0
add esp, 0x10
lea eax, [ebp - 0xc48]
push eax
call edi
mov eax, dword [ebp - 0x1e94]
inc esi
cmp esi, eax
jb 0x403cf0
push dword [ebp - 0x1ed8]
call fcn.0040667e
mov edi, dword [ebp - 0x1ec4]
add esp, 4
xor esi, esi
cmp dword [ebp - 0x1e94], esi
jbe 0x403d58
push dword [ebx + esi*4]
call fcn.0040667e
inc esi
add esp, 4
cmp esi, dword [ebp - 0x1e94]
jb 0x403d44
push ebx
call fcn.0040667e
push dword [ebp - 0x1ec8]
call fcn.0040667e
push edi
call fcn.0040667e
mov ebx, dword [ebp - 0x1edc]
add esp, 0xc
jmp 0x403d89
mov ecx, 0x80000004
jmp 0x403cd1
mov ebx, 0x80000002
lea ecx, [ebp - 0x1ef0]
call fcn.004010a0
cmp dword [0x462c30], 0
mov eax, 0x80000007
cmovne ebx, eax
cmp dword [0x462c2c], 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.004065d7
mov esp, ebp
pop ebp
ret