Function at 0x40d480
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a94f
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x5e3fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc8], 0x5c4600
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xb8]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x10], 1
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x5c], 0x58
movlpd qword [ebp - 0xc0], xmm0
call fcn.00405c80
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xb8]
call fcn.004059d0
mov edi, dword [ebp + 8]
push ecx
push 1
push edi
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 3
call fcn.00405890
test eax, eax
jne 0x40d58d
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004037a0
mov dword [ebp - 4], 4
cmp dword [ebp - 0x6c], 0
jne 0x40d5a8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor bl, bl
jmp 0x40d657
mov esi, dword [ebp + 0xc]
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xbc], 1
jne 0x40d614
mov ebx, 0xa
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d5d0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40d5e8
mov word [esi + ecx*2], bx
inc ecx
mov eax, 0x27ff
sub eax, ecx
cdq
push edx
push eax
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00412be0
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xbc], 1
je 0x40d5c8
lea ecx, [ebp - 0xb8]
call fcn.004057a0
test eax, eax
jne 0x40d64e
mov eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0xc8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004037a0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xb8]
call fcn.00404ff0
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc8]
mov edx, dword [eax + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0xcc], ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.005500f1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc