Function at 0x401d10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a9eb
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x42cf78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp + 8]
lea ecx, [ebp + 8]
lea eax, [ebx + 0x40]
push eax
call dword [sym.imp.mfc110.dll_Ordinal_300]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc110.dll_Ordinal_4978]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], eax
call dword [sym.imp.mfc110.dll_Ordinal_316]
mov edi, dword [ebp + 0x18]
mov byte [ebp - 4], 1
test edi, edi
je 0x401e05
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x14]
test eax, eax
jne 0x401db9
mov dword [esi + 8], 2
call dword [sym.imp.mfc110.dll_Ordinal_1038]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x1021
mov byte [ebp - 4], 2
call dword [sym.imp.mfc110.dll_Ordinal_1652]
push eax
lea ecx, [ebp - 0x38]
call sub.mfc110.dll_Ordinal_497
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc110.dll_Ordinal_5732]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc110.dll_Ordinal_1652]
push eax
lea ecx, [ebp - 0x38]
call sub.mfc110.dll_Ordinal_14340
lea ecx, [ebp - 0x38]
call sub.mfc110.dll_Ordinal_2826
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call sub.mfc110.dll_Ordinal_1133
push 0x30
lea eax, [ebp - 0x68]
push 0
push eax
mov dword [ebp - 4], 1
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebx + 0x3c]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc110.dll_Ordinal_300]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc110.dll_Ordinal_4978]
push dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x20]
xor ecx, ecx
test edi, edi
cmovne eax, ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x1c]
push ebx
add eax, dword [ebx + 8]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0x50], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push edi
push ebx
lea ecx, [ebp - 0x68]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov ecx, esi
xor edi, edi
call fcn.004018f0
test eax, eax
mov ecx, 1
mov eax, edi
cmove eax, ecx
cmp dword [ebp + 0x10], edi
je 0x401ef4
mov edi, dword [ebp + 0x14]
or eax, 8
mov dword [ebp + 0xc], eax
test edi, edi
je 0x401ed6
mov edi, dword [edi + 0x20]
jmp 0x401ef4
call sub.mfc110.dll_Ordinal_2199
mov ecx, eax
test ecx, ecx
je 0x401eef
mov eax, dword [ecx]
call dword [eax + 0x7c]
test eax, eax
je 0x401eef
mov edi, dword [eax + 0x20]
jmp 0x401ef1
xor edi, edi
mov eax, dword [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [esi + 0x18]
push edi
push dword [esi + 4]
call eax
test eax, eax
jne 0x401f10
lea edi, [eax + 1]
mov dword [esi + 8], eax
jmp 0x401f15
mov dword [esi + 8], eax
xor edi, edi
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x18]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc110.dll_Ordinal_12336]
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.mfc110.dll_Ordinal_12336]
cmp dword [ebp + 0x18], 0
je 0x401f51
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc110.dll_Ordinal_1652]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x401f6e
push eax
call sub.mfc110.dll_Ordinal_266
add esp, 4
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x401f7e
push ecx
call sub.mfc110.dll_Ordinal_266
add esp, 4
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14