Function at 0x1021cc8
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8bc
mov eax, dword [0x1029fe8]
or dword [ebp - 0x87c], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x8a0], ebx
mov dword [ebp - 0x890], eax
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x89c], eax
xor eax, eax
push eax
mov esi, 0x80
push esi
push 3
push eax
push 3
push 0x80000000
push ebx
mov dword [0x102ce0c], eax
mov dword [ebp - 0x880], eax
mov dword [ebp - 0x884], eax
mov dword [ebp - 0x898], eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x888], eax
je 0x10224fb
lea eax, [ebp - 0x60c]
push eax
push ebx
call fcn.01020320
xor eax, eax
cmp word [ebp - 0x60c], ax
je 0x1022032
push eax
push esi
push 2
push eax
push 7
push 0x40000000
lea eax, [ebp - 0x60c]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x87c], eax
je 0x1022032
lea eax, [ebp - 0x820]
push eax
push dword [ebp - 0x888]
call fcn.0101f537
test eax, eax
jne 0x1022032
lea eax, [ebp - 0x820]
push eax
push dword [ebp - 0x87c]
call fcn.0101f59f
test eax, eax
jne 0x1022032
movzx ebx, word [ebp + 0xc]
movsx esi, word [ebp - 0x81c]
sub ebx, 0xdffe
push 0xf0
mov dword [ebp - 0x894], esi
mov dword [ebp - 0x8a4], ebx
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x880], eax
je 0x1022032
mov edi, dword [ebp - 0x888]
push esi
push eax
push edi
call fcn.0101f629
test eax, eax
jne 0x1022032
push esi
push dword [ebp - 0x880]
push dword [ebp - 0x87c]
call fcn.0101f6a9
test eax, eax
jne 0x1022032
mov eax, dword [ebp - 0x880]
push 0x100483c
push esi
push dword [ebp - 0x87c]
push edi
call fcn.010203b4
test eax, eax
jne 0x1022032
mov eax, dword [ebp - 0x880]
push 0x1004834
push esi
push dword [ebp - 0x87c]
push edi
call fcn.010203b4
test eax, eax
jne 0x1022032
mov eax, dword [ebp - 0x880]
push 0x100482c
push esi
push dword [ebp - 0x87c]
push edi
call fcn.010203b4
test eax, eax
jne 0x1022032
mov eax, dword [ebp - 0x880]
push 0x10019d0
push esi
push dword [ebp - 0x87c]
push edi
call fcn.010203b4
test eax, eax
jne 0x1022032
mov eax, dword [ebp - 0x880]
push 0x1004824
push esi
push dword [ebp - 0x87c]
push edi
call fcn.010203b4
test eax, eax
jne 0x1022032
mov eax, dword [ebp - 0x880]
push 0x100481c
push esi
push dword [ebp - 0x87c]
push edi
call fcn.010203b4
test eax, eax
jne 0x1022032
mov eax, dword [ebp - 0x880]
push 0x1004814
push esi
push dword [ebp - 0x87c]
push edi
call fcn.010203b4
test eax, eax
jne 0x1022032
mov eax, dword [ebp - 0x880]
push 0x100480c
push esi
push dword [ebp - 0x87c]
push edi
call fcn.010203b4
test eax, eax
jne 0x1022032
mov eax, dword [ebp - 0x880]
push 0x1004804
push esi
push dword [ebp - 0x87c]
push edi
call fcn.010203b4
test eax, eax
jne 0x1022032
mov eax, dword [ebp - 0x880]
push 0x10047f4
push esi
call fcn.0101f74b
test eax, eax
mov dword [ebp - 0x8ac], eax
je 0x1022032
push 0x20
lea ecx, [ebp - 0x840]
push ecx
push eax
push edi
call fcn.0101f809
cmp eax, 0x20
jne 0x1022032
mov eax, dword [ebp - 0x83c]
mov dword [ebp - 0x88c], eax
lea eax, [ebp - 0x88c]
push eax
call fcn.0101f25c
movsx eax, word [ebp - 0x88c]
cmp ebx, eax
mov dword [0x102ce08], eax
jge 0x1022032
lea eax, [eax*4 + 3]
push 4
cdq
pop ecx
idiv ecx
mov ebx, eax
shl ebx, 2
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x884], eax
je 0x1022032
mov esi, dword [ebp - 0x890]
lea edi, [ebp - 0x8bc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x88c]
push eax
push dword [ebp + 0x14]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x8bc]
lea edi, [ebp - 0x890]
call fcn.01020b73
mov esi, 0xffff
push esi
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x898], eax
je 0x1022032
mov ecx, dword [ebp - 0x898]
lea eax, [ebp - 0x8a8]
push eax
push dword [ebp + 0x14]
mov eax, esi
lea edx, [ebp - 0x8bc]
call fcn.01021093
test eax, eax
je 0x1022095
mov dword [0x102ce0c], eax
mov edi, dword [sym.imp.msvcrt.dll_free]
push dword [ebp - 0x888]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0x87c], 0xffffffff
je 0x1022057
push dword [ebp - 0x87c]
call esi
xor esi, esi
cmp dword [ebp - 0x880], esi
je 0x102206a
push dword [ebp - 0x880]
call edi
pop ecx
cmp dword [ebp - 0x884], esi
je 0x102207b
push dword [ebp - 0x884]
call edi
pop ecx
cmp dword [ebp - 0x898], esi
je 0x10224fb
push dword [ebp - 0x898]
call edi
pop ecx
jmp 0x10224fb
lea eax, [ebp - 0x890]
push eax
call fcn.0101f2aa
lea eax, [ebp - 0x88e]
push eax
call fcn.0101f2aa
mov eax, dword [ebp - 0x880]
push 0x10047e4
push dword [ebp - 0x894]
call fcn.0101f74b
mov esi, eax
test esi, esi
je 0x1022032
push ebx
push dword [ebp - 0x884]
push esi
push dword [ebp - 0x888]
call fcn.0101f809
test eax, eax
jle 0x1022032
mov eax, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x890]
mov edx, dword [ebp - 0x8a4]
push ebx
push eax
push esi
push dword [ebp - 0x87c]
mov dword [eax + edx*4], ecx
call fcn.0101f94e
test eax, eax
jle 0x1022032
push dword [ebp - 0x884]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
mov eax, dword [0x102ce08]
lea eax, [eax*4 + 3]
push 4
cdq
pop ecx
idiv ecx
mov ebx, dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
shl esi, 2
push esi
call ebx
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x884], eax
je 0x1022038
lea eax, [ebp - 0x88c]
push eax
call fcn.0101f2aa
lea eax, [ebp - 0x88a]
push eax
call fcn.0101f2aa
mov eax, dword [ebp - 0x880]
push 0x10047dc
push dword [ebp - 0x894]
call fcn.0101f74b
test eax, eax
mov dword [ebp - 0x890], eax
je 0x1022038
push esi
push dword [ebp - 0x884]
push eax
push dword [ebp - 0x888]
call fcn.0101f809
test eax, eax
jle 0x1022038
mov eax, dword [ebp - 0x884]
mov ecx, dword [ebp - 0x88c]
mov edx, dword [ebp - 0x8a4]
push esi
push eax
push dword [ebp - 0x890]
mov dword [eax + edx*4], ecx
push dword [ebp - 0x87c]
call fcn.0101f94e
test eax, eax
jle 0x1022038
push dword [ebp - 0x884]
call edi
mov eax, dword [0x102ce08]
lea eax, [eax*4 + 7]
push 4
cdq
pop ecx
idiv ecx
mov esi, eax
shl esi, 2
push esi
call ebx
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x884], eax
je 0x1022038
mov eax, dword [ebp - 0x880]
push 0x10047ec
push dword [ebp - 0x894]
call fcn.0101f74b
test eax, eax
mov dword [ebp - 0x88c], eax
je 0x1022038
push esi
push dword [ebp - 0x884]
push eax
push dword [ebp - 0x888]
call fcn.0101f809
test eax, eax
jle 0x1022038
mov eax, dword [ebp - 0x880]
push 0x10047fc
push dword [ebp - 0x894]
call fcn.0101f74b
mov ebx, eax
test ebx, ebx
je 0x1022038
push dword [ebp - 0x8a8]
push dword [ebp - 0x898]
push dword [ebp - 0x8a4]
push dword [ebp - 0x884]
push ebx
push dword [ebp - 0x87c]
push dword [ebp - 0x888]
call fcn.01020519
test eax, eax
jne 0x1022038
push dword [ebp - 0x87c]
mov eax, ebx
call fcn.0101f4b3
test eax, eax
jne 0x1022038
push dword [ebp - 0x898]
call edi
and dword [ebp - 0x898], 0
pop ecx
push esi
push dword [ebp - 0x884]
push dword [ebp - 0x88c]
push dword [ebp - 0x87c]
call fcn.0101f94e
test eax, eax
jle 0x1022038
push dword [ebp + 0x14]
lea ebx, [ebp - 0x840]
call fcn.0101fcfc
test eax, eax
jl 0x1022038
push 0x20
mov eax, ebx
push eax
push dword [ebp - 0x8ac]
push dword [ebp - 0x87c]
call fcn.0101f94e
cmp eax, 0x20
jne 0x1022038
push dword [ebp - 0x894]
push dword [ebp - 0x880]
push dword [ebp - 0x87c]
call fcn.0101f6a9
test eax, eax
jne 0x1022038
mov eax, dword [ebp - 0x880]
push 0x10047cc
push dword [ebp - 0x894]
call fcn.0101f74b
mov esi, eax
test esi, esi
je 0x1022038
push 0x36
lea eax, [ebp - 0x878]
push eax
push esi
push dword [ebp - 0x888]
call fcn.0101f809
test eax, eax
jle 0x1022038
and dword [esi + 4], 0
push 0x36
lea eax, [ebp - 0x878]
push eax
push esi
push dword [ebp - 0x87c]
call fcn.0101f94e
test eax, eax
jle 0x1022038
mov ecx, dword [ebp - 0x880]
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x820]
push eax
push dword [ebp - 0x87c]
mov eax, dword [ebp - 0x894]
call fcn.0101fa75
test eax, eax
jne 0x1022038
push 0x36
lea eax, [ebp - 0x878]
push eax
push esi
push dword [ebp - 0x87c]
call fcn.0101f94e
test eax, eax
jle 0x1022038
push dword [ebp - 0x888]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x87c]
call ebx
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 0x8a0]
call fcn.01020320
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x102242e
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 0x8a0]
call esi
test eax, eax
jne 0x1022470
mov esi, 0x100
push esi
lea eax, [ebp - 0x404]
push eax
push 0xef3b
push dword [ebp - 0x89c]
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
lea eax, [ebp - 0x204]
push eax
push 0xef6c
push dword [ebp - 0x89c]
call dword [sym.imp.USER32.dll_LoadStringW]
call fcn.0101af4f
test eax, eax
jne 0x10224b2
jmp 0x10224b5
push dword [ebp - 0x8a0]
lea eax, [ebp - 0x60c]
push eax
call esi
test eax, eax
je 0x102242e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x814]
push eax
call ebx
test eax, eax
jne 0x1022500
push dword [ebp - 0x8a0]
call ebx
push dword [ebp - 0x8a0]
lea eax, [ebp - 0x814]
push eax
call esi
push 0xfffffffffffffffd
pop esi
jmp 0x1022502
mov eax, dword [eax + 0x20]
push 0
lea ecx, [ebp - 0x404]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x888]
call ebx
push dword [ebp - 0x87c]
call ebx
push dword [ebp - 0x880]
call edi
push dword [ebp - 0x884]
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x60c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or eax, 0xffffffff
jmp 0x1022516
xor esi, esi
push dword [ebp - 0x880]
call edi
push dword [ebp - 0x884]
call edi
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01023881
leave
ret 0x10