Function at 0x40fd90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
lea edx, [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x415270
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], eax
lea ebx, [ecx + 8]
cmp edx, ebx
mov dword [ebp - 0x28], ecx
je 0x40fe26
mov esi, dword [edx + 0x10]
cmp dword [edx + 0x14], 0xf
mov eax, edx
jbe 0x40fdd7
mov eax, dword [edx]
mov edx, dword [ecx + 0x1c]
cmp edx, esi
jae 0x40fe05
mov dword [ebp - 0x10], 0
sub esp, 0xc
mov cl, byte [ebp - 0x60]
mov byte [esp + 4], cl
mov dword [esp + 8], eax
mov dword [esp], esi
mov ecx, ebx
mov dword [ebp - 0x20], ebx
call fcn.00407150
mov ebx, dword [ebp - 0x20]
jmp 0x40fe20
mov edi, ebx
cmp edx, 0x10
jb 0x40fe0e
mov edi, dword [ebx]
mov dword [ecx + 0x18], esi
push esi
push eax
push edi
call fcn.004c4690
add esp, 0xc
mov byte [edi + esi], 0
lea edx, [ebp + 8]
mov ecx, dword [ebp - 0x28]
mov eax, esp
movsd xmm0, qword [edx + 0x18]
movsd qword [ecx + 0x20], xmm0
push eax
sub esp, 0x14
mov esi, esp
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov edi, dword [ecx + 0x18]
cmp dword [ecx + 0x1c], 0xf
jbe 0x40fe58
mov ebx, dword [ecx + 8]
cmp edi, 0xf
mov dword [ebp - 0x24], eax
ja 0x40fe74
movups xmm0, xmmword [ebx]
movups xmmword [esi], xmm0
mov dword [ebp - 0x10], 0
mov eax, 0xf
jmp 0x40fee8
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x44], edi
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
mov ecx, 0x7fffffff
cmovb ecx, eax
mov dword [ebp - 0x10], 0
cmp ecx, 0xfff
mov dword [ebp - 0x64], ecx
jb 0x40febd
lea eax, [ecx + 0x24]
push eax
call fcn.004a880e
add esp, 4
mov edx, dword [ebp - 0x20]
mov ecx, eax
add eax, 0x23
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x40fecc
lea eax, [ecx + 1]
push eax
call fcn.004a880e
add esp, 4
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
mov dword [esi], eax
lea ecx, [edi + 1]
push ecx
push edx
push eax
call fcn.004c4690
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
call fcn.0040f5a0
mov esp, dword [ebp - 0x24]
test al, al
je 0x40ff94
lea ecx, [ebp - 0x60]
lea eax, [ebp + 8]
push eax
push ecx
call fcn.00443000
add esp, 8
cmp dword [ebp - 0x4c], 7
lea eax, [ebp - 0x60]
jbe 0x40ff1a
mov eax, dword [ebp - 0x60]
sub esp, 0x1c
movaps xmm0, xmmword [0x4e7a50]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp - 0x28]
mov dword [esi + 0x28], eax
cmp eax, 0xffffffff
je 0x40ff9e
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
or edx, ecx
je 0x41006a
mov edx, dword [esi + 0x24]
mov dword [ebp - 0x68], edx
lea edx, [ebp - 0x68]
push 0
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x410082
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41010f
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
jmp 0x41006e
xor ebx, ebx
lea edi, [ebp + 8]
jmp 0x410235
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], 1
push str.Could_not_create__
push eax
call fcn.00401560
add esp, 8
lea esi, [ebp + 8]
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x40ffcf
mov edx, dword [esi]
push ecx
push edx
push eax
call fcn.00407250
add esp, 0xc
push 0x4f907b
push eax
call fcn.00401560
add esp, 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
push dword [ebp - 0x24]
push eax
call fcn.0040fbf0
add esp, 8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
jbe 0x410009
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x10], 4
push eax
push ecx
push dword [ebp - 0x28]
call fcn.00407250
add esp, 0xc
push eax
call fcn.00401370
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
lea edi, [ebp + 8]
jb 0x4101fa
mov ecx, dword [ebp - 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41005b
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41027d
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
jmp 0x4101fa
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov byte [esi + 0x38], 1
mov bl, 1
lea edi, [ebp + 8]
jmp 0x4101fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], 1
push str.Could_not_set_size_of__
push eax
call fcn.00401560
add esp, 8
lea esi, [ebp + 8]
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x4100b3
mov edx, dword [esi]
push ecx
push edx
push eax
call fcn.00407250
add esp, 0xc
push 0x4f907b
push eax
call fcn.00401560
add esp, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
push dword [ebp - 0x24]
push eax
call fcn.0040fbf0
add esp, 8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
jbe 0x4100ed
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x10], 2
push eax
push ecx
push dword [ebp - 0x20]
call fcn.00407250
add esp, 0xc
push eax
call fcn.00401370
add esp, 4
jmp 0x410197
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], 1
push str.Could_not_set_size_of__
push eax
call fcn.00401560
add esp, 8
lea esi, [ebp + 8]
mov ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x410140
mov edx, dword [esi]
push ecx
push edx
push eax
call fcn.00407250
add esp, 0xc
push 0x4f907b
push eax
call fcn.00401560
add esp, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
push dword [ebp - 0x24]
push eax
call fcn.0040fbf0
add esp, 8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0xf
lea ecx, [ebp - 0x40]
jbe 0x41017a
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x10], 3
push eax
push ecx
push dword [ebp - 0x20]
call fcn.00407250
add esp, 0xc
push eax
call fcn.00401370
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
lea edi, [ebp + 8]
mov ebx, dword [ebp - 0x28]
jb 0x4101d5
mov ecx, dword [ebp - 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x4101cb
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41027d
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x28], 0xffffffff
cmp dword [ebp - 0x4c], 7
jbe 0x4101f0
mov eax, dword [ebp - 0x60]
jmp 0x4101f3
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
mov ecx, dword [ebp - 0x4c]
cmp ecx, 8
jb 0x410235
mov eax, dword [ebp - 0x60]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x41022b
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x41027d
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.004a8843
add esp, 8
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x410268
mov ecx, dword [edi]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41025e
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41027d
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x20
call fcn.004cc578
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4102cb
mov ecx, dword [ebp - 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x4102c1
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4102e2
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
add esp, 0x1c
pop ebp
ret
call fcn.004cc578
nop word [eax + eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x41032b
mov ecx, dword [ebp - 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x410321
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x410342
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
add esp, 0x1c
pop ebp
ret
call fcn.004cc578
nop word [eax + eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x41038b
mov ecx, dword [ebp - 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x410381
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4103a2
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
add esp, 0x1c
pop ebp
ret
call fcn.004cc578
nop word [eax + eax]
push ebp
sub esp, 0x1c
add ebp, 0xc
mov ecx, dword [ebp - 0x4c]
cmp ecx, 8
jb 0x4103f0
mov eax, dword [ebp - 0x60]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x4103e6
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x410409
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.004a8843
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], 0
add esp, 0x1c
pop ebp
ret
call fcn.004cc578
nop
push ebp
sub esp, 0x1c
add ebp, 0xc
lea eax, [ebp + 8]
mov eax, dword [eax + 0x14]
cmp eax, 0x10
jb 0x410450
lea ecx, [ebp + 8]
mov ecx, dword [ecx]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x410446
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x410455
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.004a8843
add esp, 8
add esp, 0x1c
pop ebp
ret
call fcn.004cc578
int3