Function at 0x4023e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c10
call fcn.00415a90
mov eax, dword [0x421494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edx, str.ENTERING______________________________________CEHCommonOperations::EHSetListerExeState
mov esi, 0x423540
call fcn.004018a0
push 0x41d3c8
lea eax, [ebp - 0x1c08]
push 0x400
push eax
call fcn.0040790f
add esp, 0xc
push str.EHNULL
push 0x424540
call fcn.00408a80
add esp, 8
test eax, eax
je 0x402484
push 0x424540
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.0040790f
add esp, 0xc
push str.winltstate.ltstate
lea edx, [ebp - 0x808]
push 0x400
push edx
call fcn.004086dd
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x1408]
push 0x400
push ecx
call fcn.0040790f
add esp, 0xc
mov edx, dword [0x426544]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x1408]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40250a
lea ecx, [ebp - 0x1408]
push ecx
lea edx, [ebp - 0x808]
push str.ERROR__________________Failed_to_open_LISTER_EXE_STATE_FILE____s
push edx
call fcn.00408b0b
add esp, 0xc
lea edx, [ebp - 0x808]
mov esi, 0x423540
call fcn.004018a0
mov edx, str.LEAVING______________________________________CEHCommonOperations::EHSetListerExeState
call fcn.004018a0
mov eax, dword [0x426544]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407900
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c08]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402513
sub eax, edx
sar eax, 1
inc eax
push eax
lea ecx, [ebp - 0x1c08]
push ecx
push 0x400
lea edx, [ebp - 0xc08]
push edx
lea eax, [ebp - 0x1c10]
push eax
call fcn.004086bd
lea eax, [ebp - 0xc08]
add esp, 0x14
mov dword [ebp - 0x1c0c], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402560
push 0
sub eax, edx
lea ecx, [ebp - 0x1c0c]
push ecx
mov esi, eax
push esi
lea edx, [ebp - 0xc08]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x4025e0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1408]
push eax
lea ecx, [ebp - 0x808]
push str.ERROR__________________Failed_to_Write_LISTER_EXE_STATE_FILE____s
push ecx
call fcn.00408b0b
add esp, 0xc
lea edx, [ebp - 0x808]
mov esi, 0x423540
call fcn.004018a0
mov edx, str.LEAVING______________________________________CEHCommonOperations::EHSetListerExeState
call fcn.004018a0
mov edx, dword [0x426544]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407900
mov esp, ebp
pop ebp
ret
cmp esi, dword [ebp - 0x1c0c]
je 0x402640
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1408]
push eax
lea ecx, [ebp - 0x808]
push str.ERROR__________________Failed__dwBytesToWrite_dwBytesWritten_____s
push ecx
call fcn.00408b0b
add esp, 0xc
lea edx, [ebp - 0x808]
mov esi, 0x423540
call fcn.004018a0
mov edx, str.LEAVING______________________________________CEHCommonOperations::EHSetListerExeState
call fcn.004018a0
mov edx, dword [0x426544]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407900
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x426544]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, str.LEAVING______________________________________CEHCommonOperations::EHSetListerExeState
mov esi, 0x423540
call fcn.004018a0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407900
mov esp, ebp
pop ebp
ret