Function at 0x4019d0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a25b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x820
mov eax, dword [0x4cbba0]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x824], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
mov ecx, 0x4cc840
mov dword [esp + 0x844], 0
call fcn.0042c860
test eax, eax
je 0x401a50
mov eax, dword [esp + 0x18]
cmp eax, dword [ebp + 0x10]
jae 0x401bd1
push 0x2f
push edi
mov edi, dword [sym.imp.MSVCR71.dll_strrchr]
call edi
push 0x5c
push esi
mov ebx, eax
call edi
add esp, 0x10
test ebx, ebx
mov edx, eax
je 0x401be2
test edx, edx
je 0x401be2
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, edx
sub ecx, esi
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [ebx + 1]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401aa0
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401ab0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0042d980
add esp, 8
test eax, eax
je 0x401be2
mov ebx, dword [esp + 0x10]
lea esi, [esp + 0x420]
mov eax, ebx
sub esi, ebx
nop
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401af0
lea edi, [esp + 0x420]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401b02
mov edx, dword [str..bak]
mov al, byte [0x4ac680]
mov dword [edi], edx
lea ecx, [esp + 0x420]
push ecx
mov byte [edi + 4], al
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebx
call edi
lea edx, [esp + 0x20]
push str..zip
push edx
call dword [sym.imp.MSVCR71.dll_strstr]
add esp, 8
test eax, eax
je 0x401bb7
mov eax, ebx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401b44
lea eax, [esp + 0x420]
push 0x5c
push eax
call dword [sym.imp.MSVCR71.dll_strrchr]
add esp, 8
test eax, eax
je 0x401b69
mov byte [eax + 1], 0
push 0
push ecx
lea edx, [esp + 0x428]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call dword [0x4ab700]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x844], 1
call dword [0x4ab700]
mov byte [esp + 0x840], 0
call fcn.0040f2d0
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401bbf
push ebx
lea edx, [esp + 0x24]
push edx
call edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x401bd1
push 1
push ebx
call fcn.0049b770
add esp, 8
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
jmp 0x401bee
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
mov ecx, dword [esp + 0x82c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x824]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a17d1
mov esp, ebp
pop ebp
ret 0x10