Function at 0x408eb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436827
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1d0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x1dc]
mov ecx, 0x74
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x128]
call fcn.00409430
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp + 0xc]
call sub.MFC42D.DLL_Ordinal_880
push eax
call sub.MFC42D.DLL_Ordinal_3059
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], 0
fild qword [ebp - 0x164]
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x168], 0
fidiv dword [ebp - 0x16c]
fmul dword [0x43d374]
call sub.MSVCRTD.dll__ftol
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x28]
call sub.MFC42D.DLL_Ordinal_4792
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], 0
fild qword [ebp - 0x174]
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x178], 0
fidiv dword [ebp - 0x17c]
fmul dword [0x43d370]
call sub.MSVCRTD.dll__ftol
push eax
push 0x1001
push 0x466
call sub.MFC42D.DLL_Ordinal_1098
mov ecx, eax
call sub.MFC42D.DLL_Ordinal_4170
lea ecx, [ebp + 0x10]
call sub.MFC42D.DLL_Ordinal_2640
mov dword [ebp - 0x130], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x130]
add ecx, 0xd
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42D.DLL_Ordinal_4849
push 4
lea edx, [ebp + 0x18]
push edx
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42D.DLL_Ordinal_834
push eax
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
push 4
lea eax, [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42D.DLL_Ordinal_834
add eax, 4
push eax
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
push 4
lea ecx, [ebp - 0x12c]
push ecx
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42D.DLL_Ordinal_834
add eax, 8
push eax
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x130]
add edx, 1
push edx
lea ecx, [ebp + 0x10]
call sub.MFC42D.DLL_Ordinal_880
push eax
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42D.DLL_Ordinal_834
add eax, 0xc
push eax
call sub.MSVCRTD.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x3c], 0
je 0x4090e3
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42D.DLL_Ordinal_3036
mov ecx, dword [ebp - 0x12c]
lea edx, [eax + ecx + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0040ab80
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x4090e3
push 0
push 0x13
push 0x466
call sub.MFC42D.DLL_Ordinal_1098
mov ecx, eax
call sub.MFC42D.DLL_Ordinal_4170
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call sub.MFC42D.DLL_Ordinal_684
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42D.DLL_Ordinal_684
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42D.DLL_Ordinal_684
jmp 0x40940d
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42D.DLL_Ordinal_3036
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42D.DLL_Ordinal_2388
push eax
push 0x13
push 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040a800
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 1
jne 0x4093af
push 0x40
lea ecx, [ebp + 0xc]
call sub.MFC42D.DLL_Ordinal_880
push eax
lea ecx, [ebp - 0x148]
call sub.MFC42D.DLL_Ordinal_341
mov byte [ebp - 4], 3
push 0
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x148]
call sub.MFC42D.DLL_Ordinal_4443
push 0xffffffffffffffff
push 0x1000
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42D.DLL_Ordinal_4849
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], 0
mov ecx, dword [ebp - 0x14c]
cmp ecx, dword [ebp - 0x12c]
jae 0x4092c7
mov edx, dword [ebp - 0x12c]
sub edx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], edx
cmp dword [ebp - 0x150], 0x1000
jbe 0x4091ad
mov dword [ebp - 0x150], 0x1000
mov eax, dword [ebp - 0x14c]
add eax, dword [ebp - 0x150]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x150]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42D.DLL_Ordinal_2388
push eax
lea ecx, [ebp - 0x148]
call sub.MFC42D.DLL_Ordinal_4258
push 0
mov edx, dword [ebp - 0x150]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call sub.MFC42D.DLL_Ordinal_2388
push eax
push 0
push 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040a800
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x409219
jmp 0x4092c7
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x184], edx
mov dword [ebp - 0x180], 0
fild qword [ebp - 0x184]
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], 0
fidiv dword [ebp - 0x18c]
fmul dword [0x43d374]
call sub.MSVCRTD.dll__ftol
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x28]
call sub.MFC42D.DLL_Ordinal_4792
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x190], 0
fild qword [ebp - 0x194]
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], 0
fidiv dword [ebp - 0x19c]
fmul dword [0x43d370]
call sub.MSVCRTD.dll__ftol
push eax
push 0x1001
push 0x466
call sub.MFC42D.DLL_Ordinal_1098
mov ecx, eax
call sub.MFC42D.DLL_Ordinal_4170
jmp 0x409173
lea ecx, [ebp - 0x148]
call sub.MFC42D.DLL_Ordinal_1510
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x3c], 0
je 0x409342
mov ecx, dword [ebp - 0x10]
call fcn.0040aca0
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x409342
push 0
push 0x13
push 0x466
call sub.MFC42D.DLL_Ordinal_1098
mov ecx, eax
call sub.MFC42D.DLL_Ordinal_4170
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call sub.MFC42D.DLL_Ordinal_590
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call sub.MFC42D.DLL_Ordinal_684
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42D.DLL_Ordinal_684
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42D.DLL_Ordinal_684
jmp 0x40940d
mov dword [ebp - 0x15c], 0
push 0
push 4
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x34]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040aab0
mov dword [ebp - 0x138], eax
cmp dword [ebp + 0x18], 0
je 0x409393
cmp dword [ebp - 0x15c], 0
je 0x409393
lea ecx, [ebp + 0xc]
call sub.MFC42D.DLL_Ordinal_880
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
push 0
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x28]
call sub.MFC42D.DLL_Ordinal_4792
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x148]
call sub.MFC42D.DLL_Ordinal_590
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x4093cc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov dword [ebp - 0x138], 2
mov edx, dword [ebp - 0x138]
push edx
push 0x13
push 0x466
call sub.MFC42D.DLL_Ordinal_1098
mov ecx, eax
call sub.MFC42D.DLL_Ordinal_4170
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call sub.MFC42D.DLL_Ordinal_684
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42D.DLL_Ordinal_684
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42D.DLL_Ordinal_684
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1dc
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret 0x14