Function at 0x401500
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403c44
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x105c
call fcn.004039e0
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x1028], edi
mov dword [ebp - 0x1034], esi
mov dword [ebp - 0x1020], 0
mov ebx, 1
lea ecx, [ebp - 0x1048]
mov dword [ebp - 4], ebx
call dword [sym.imp.mfc100.dll_Ordinal_421]
lea ecx, [ebp - 0x1024]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea ecx, [ebp - 0x1018]
call dword [sym.imp.mfc100.dll_Ordinal_316]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x101c]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc100.dll_Ordinal_300]
push ebx
lea ecx, [ebp - 0x102c]
push ecx
lea ecx, [ebp - 0x101c]
mov byte [ebp - 4], 5
call dword [sym.imp.mfc100.dll_Ordinal_11781]
mov edx, dword [eax]
cmp dword [edx - 0xc], ebx
jne 0x4015bf
push 0
mov ecx, eax
call dword [sym.imp.mfc100.dll_Ordinal_1437]
cmp al, 0x5c
jne 0x4015bf
xor bl, bl
lea ecx, [ebp - 0x102c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
test bl, bl
je 0x4015e0
push 0x404738
lea ecx, [ebp - 0x101c]
call dword [sym.imp.mfc100.dll_Ordinal_1483]
lea eax, [ebp - 0x1024]
push eax
mov ebx, esi
mov byte [ebp - 4], 6
call fcn.00402840
mov esi, eax
test byte [esi + 0x18], 1
jne 0x401606
mov esi, dword [esi + 0x14]
push esi
push 4
call dword [sym.imp.mfc100.dll_Ordinal_2056]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + 4]
cmp edx, ecx
jbe 0x401621
sub eax, ecx
add eax, 4
push eax
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_4105]
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x102c], ecx
add eax, 4
lea ecx, [ebp - 0x106c]
mov dword [esi + 0x28], eax
call dword [sym.imp.mfc100.dll_Ordinal_423]
lea edx, [ebp - 0x1024]
push edx
lea eax, [ebp - 0x1030]
mov bl, 7
push eax
lea ecx, [ebp - 0x101c]
mov byte [ebp - 4], bl
call fcn.004027c0
add esp, 8
push eax
lea ecx, [ebp - 0x1018]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc100.dll_Ordinal_1313]
lea ecx, [ebp - 0x1030]
mov byte [ebp - 4], bl
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0x1018]
push 0
push ecx
lea ecx, [ebp - 0x106c]
call dword [sym.imp.mfc100.dll_Ordinal_4188]
test eax, eax
je 0x4016a5
mov edx, dword [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x1018]
push 0
push 0x9011
push eax
lea ecx, [ebp - 0x1048]
call dword [sym.imp.mfc100.dll_Ordinal_10906]
test eax, eax
jne 0x40172e
push 0x404b8c
mov ecx, edi
call dword [sym.imp.mfc100.dll_Ordinal_310]
lea ecx, [ebp - 0x106c]
mov dword [ebp - 0x1020], 1
mov byte [ebp - 4], 6
call dword [sym.imp.mfc100.dll_Ordinal_979]
lea ecx, [ebp - 0x101c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x1018]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x1024]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100.dll_Ordinal_977]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, edi
jmp 0x401901
mov dword [ebp - 0x1030], 0
xor edi, edi
cmp dword [ebp - 0x1030], 0
jne 0x4017b1
push 0x1000
lea ecx, [ebp - 0x1014]
push 0
push ecx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x102c]
sub eax, edi
add esp, 0xc
mov ebx, eax
cmp eax, 0x1000
jb 0x40176f
mov ebx, 0x1000
mov ecx, dword [ebp - 0x1034]
push ebx
lea edx, [ebp - 0x1014]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_11274]
mov esi, eax
cmp esi, ebx
jae 0x401793
mov dword [ebp - 0x1030], 1
push esi
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1048]
call dword [sym.imp.mfc100.dll_Ordinal_13312]
add edi, esi
cmp edi, dword [ebp - 0x102c]
jne 0x40173a
lea ecx, [ebp - 0x1048]
call dword [sym.imp.mfc100.dll_Ordinal_2524]
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc100.dll_Ordinal_979]
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x1028]
lea ecx, [ebp - 0x1024]
push ecx
mov ecx, esi
call dword [sym.imp.mfc100.dll_Ordinal_300]
or dword [ebp - 0x1020], 1
lea ecx, [ebp - 0x101c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x1018]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x1024]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp - 0x1048]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc100.dll_Ordinal_977]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov eax, esi
jmp 0x401901
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00403048
mov esp, ebp
pop ebp
ret