Function at 0x40e9f0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b0de
mov eax, dword fs:[0]
push eax
sub esp, 0x61c
mov eax, dword [0x437368]
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 ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 2
push ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x42c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x424], eax
jne 0x40ea97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x42fed0
lea ebx, [ebp - 0x450]
call fcn.0040a2d0
add esp, 4
push eax
lea ecx, [ebp - 0x508]
push ecx
mov dword [ebp - 4], 0
call fcn.0040a6e0
push 0x4340d8
lea edx, [ebp - 0x508]
push edx
call fcn.004166ab
mov eax, dword [ebp - 0x428]
push 0x42fe0c
push eax
call fcn.00414877
add esp, 8
test eax, eax
jne 0x40ebf9
push edi
lea ecx, [ebp - 0x450]
call fcn.0040ace0
mov dword [ebp - 4], 1
cmp dword [eax + 0x18], 8
jb 0x40ead1
mov edi, dword [eax + 4]
jmp 0x40ead4
lea edi, [eax + 4]
cmp dword [0x439808], 0
jne 0x40eae2
call fcn.0040ad70
cmp dword [0x438268], 8
mov eax, dword [0x438254]
jae 0x40eaf5
mov eax, 0x438254
mov ecx, dword [ebp - 0x428]
push ecx
push edi
push eax
push 0x42fee8
lea edx, [ebp - 0x218]
push 0x100
push edx
call fcn.00414046
add esp, 0x18
cmp dword [ebp - 0x438], 8
jb 0x40eb2f
mov eax, dword [ebp - 0x44c]
push eax
call fcn.00414041
add esp, 4
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40eb40
sub eax, edx
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x450]
sar eax, 1
push edx
mov edi, eax
call fcn.0040a030
add esp, 8
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x40eb76
mov eax, dword [eax + 4]
jmp 0x40eb79
add eax, 4
cmp dword [esi + 0x20], 8
jb 0x40eb84
mov ecx, dword [esi + 0xc]
jmp 0x40eb87
lea ecx, [esi + 0xc]
lea edx, [ebp - 0x430]
push edx
lea edx, [ebp - 0x434]
push edx
push edi
push eax
movzx eax, word [esi + 4]
push 0x42ff38
push eax
push ecx
mov ecx, dword [esi]
push 0x42e6f4
push ecx
add esi, 0x40
push esi
call fcn.00409b40
cmp dword [ebp - 0x438], 0x10
mov esi, eax
jb 0x40ecca
mov edx, dword [ebp - 0x44c]
push edx
call fcn.00414041
add esp, 4
jmp 0x40ecca
mov edx, dword [ebp - 0x428]
push edx
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00414067
add esp, 0xc
lea ecx, [ebp - 0x420]
push 0x2e
push ecx
call fcn.00414011
add esp, 8
test eax, eax
je 0x40ec2e
mov word [eax], 0x5f
push edi
lea ecx, [ebp - 0x450]
call fcn.0040ace0
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x40ec49
mov eax, dword [eax + 4]
jmp 0x40ec4c
add eax, 4
push eax
lea edx, [ebp - 0x420]
push edx
push 0x42ff78
lea eax, [ebp - 0x218]
push 0x100
push eax
call fcn.00414046
add esp, 0x14
cmp dword [ebp - 0x438], edi
jb 0x40ec84
mov ecx, dword [ebp - 0x44c]
push ecx
call fcn.00414041
add esp, 4
mov dword [ebp - 4], 5
cmp dword [esi + 0x20], edi
jb 0x40ec95
mov eax, dword [esi + 0xc]
jmp 0x40ec98
lea eax, [esi + 0xc]
lea edx, [ebp - 0x430]
push edx
lea ecx, [ebp - 0x434]
push ecx
movzx ecx, word [esi + 4]
push 0
push 0
lea edx, [ebp - 0x218]
push edx
mov edx, dword [esi]
push ecx
push eax
push 0x42e668
push edx
add esi, 0x40
push esi
call fcn.00409b40
mov esi, eax
cmp esi, 0xc8
mov dword [ebp - 4], 0xffffffff
je 0x40ed7c
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x4e0]
push ecx
call fcn.004041d0
lea edx, [ebp - 0x4d8]
push 0x42ffb8
push edx
mov dword [ebp - 4], 7
call fcn.004072c0
mov eax, dword [ebp - 0x428]
push eax
lea ecx, [ebp - 0x4d8]
push ecx
call fcn.004072c0
lea edx, [ebp - 0x4d8]
push 0x42ffec
push edx
call fcn.004072c0
add esp, 0x18
push esi
lea eax, [ebp - 0x4d8]
push eax
call fcn.00403d10
lea ecx, [ebp - 0x450]
lea eax, [ebp - 0x4e0]
call fcn.00404300
push eax
lea ecx, [ebp - 0x530]
push ecx
mov byte [ebp - 4], 8
call fcn.0040a6e0
push 0x4340d8
lea edx, [ebp - 0x530]
push edx
call fcn.004166ab
mov edi, dword [ebp - 0x430]
mov esi, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x424]
push 0
lea eax, [ebp - 0x454]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40ee8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov edi, eax
je 0x40edbd
push esi
call fcn.00414527
add esp, 4
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x4e0]
push eax
call fcn.004041d0
lea ecx, [ebp - 0x4d8]
push 0x430018
push ecx
mov dword [ebp - 4], 9
call fcn.004072c0
lea edx, [ebp - 0x4d8]
push ebx
push edx
call fcn.004072c0
lea eax, [ebp - 0x4d8]
push 0x430044
push eax
call fcn.004072c0
push edi
mov ecx, 0x430058
lea ebx, [ebp - 0x450]
call fcn.0040a2d0
add esp, 0x1c
push eax
lea ecx, [ebp - 0x4d8]
push ecx
mov byte [ebp - 4], 0xa
call fcn.0040bb10
add esp, 8
mov byte [ebp - 4], 9
cmp dword [ebp - 0x438], 8
jb 0x40ee57
mov edx, dword [ebp - 0x44c]
push edx
call fcn.00414041
add esp, 4
lea ecx, [ebp - 0x450]
lea eax, [ebp - 0x4e0]
call fcn.00404300
push eax
lea eax, [ebp - 0x558]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040a6e0
push 0x4340d8
lea ecx, [ebp - 0x558]
push ecx
call fcn.004166ab
cmp edi, dword [ebp - 0x454]
je 0x40ef2f
test esi, esi
je 0x40eea3
push esi
call fcn.00414527
add esp, 4
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x608]
push eax
call fcn.004041d0
lea ecx, [ebp - 0x600]
push 0x430018
push ecx
mov dword [ebp - 4], 0xc
call fcn.004072c0
lea edx, [ebp - 0x600]
push ebx
push edx
call fcn.004072c0
lea eax, [ebp - 0x600]
push 0x430070
push eax
call fcn.004072c0
add esp, 0x18
lea ecx, [ebp - 0x624]
lea eax, [ebp - 0x608]
call fcn.00404300
push eax
lea ecx, [ebp - 0x580]
push ecx
mov byte [ebp - 4], 0xd
call fcn.0040a6e0
push 0x4340d8
lea edx, [ebp - 0x580]
push edx
call fcn.004166ab
test esi, esi
je 0x40ef3c
push esi
call fcn.00414527
add esp, 4
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.00414002
mov esp, ebp
pop ebp
ret 8