Function at 0x403e10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x422916
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
mov eax, dword [0x431884]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x828], eax
mov eax, dword [esi]
mov ebx, ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
push edi
je 0x404064
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x14]
call fcn.0041b9ec
mov edi, vtable.CFileException.0
mov dword [esp + 0x14], edi
call fcn.0041ba63
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xffffffff
call fcn.00403860
mov eax, dword [esi]
mov edx, dword [ebx + 0x64]
lea ecx, [esp + 0x14]
push ecx
lea esi, [ebx + 0x64]
push 0x1002
push eax
mov ecx, esi
mov dword [esp + 0x848], 1
call dword [edx + 0x20]
test eax, eax
jne 0x403ee3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x83c], 0xffffffff
mov dword [esp + 0x14], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x403f46
mov byte [esp + 0x28], 0
xor eax, eax
mov ecx, 0x1ff
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x60]
lea edx, [esp + 0x10]
push edx
stosw word es:[edi], ax
lea edx, [esp + 0x2c]
push edx
stosb byte es:[edi], al
push 0x20
lea edx, [ebx + 0x20]
mov edi, 0x800
push edx
mov dword [esp + 0x20], edi
mov eax, dword [ecx]
push 1
call dword [eax + 4]
test eax, eax
jne 0x403f57
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x83c], 0xffffffff
mov dword [esp + 0x14], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40402d
cmp word [esp + 0x10], 0x20
jne 0x404050
mov eax, dword [esi]
push 0x20
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov ecx, dword [ebx + 0x60]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x10
lea eax, [ebx + 0x40]
push eax
mov dword [esp + 0x20], edi
mov edx, dword [ecx]
push 1
call dword [edx + 4]
test eax, eax
je 0x404050
cmp word [esp + 0x10], 0x10
jne 0x404050
mov edx, dword [esi]
push 0x10
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov edi, dword [ebx + 0x54]
cmp edi, dword [ebx + 0x58]
je 0x40400d
lea esp, [esp]
mov ecx, dword [ebx + 0x60]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x588
push edi
mov dword [esp + 0x20], 0x800
mov edx, dword [ecx]
push 1
call dword [edx + 4]
test eax, eax
je 0x404050
cmp word [esp + 0x10], 0x590
jne 0x404050
mov edx, dword [esi]
push 0x590
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [ebx + 0x58]
add edi, 0x588
cmp edi, eax
jne 0x403fc0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x4c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x83c], 0xffffffff
call fcn.004039c0
mov eax, 1
mov ecx, dword [esp + 0x834]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x82c]
call fcn.00408d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x83c], 0xffffffff
call fcn.004039c0
xor eax, eax
jmp 0x40402d