Function at 0x402330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.00417d20
mov eax, dword [0x427494]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov edx, str.ENTERING______________________________________CEHCommonOperations::EHGetListerExeState
mov esi, 0x42a090
call fcn.00401870
push str.EHNULL
push 0x42b090
call fcn.0040abd0
add esp, 8
test eax, eax
je 0x4023ba
push 0x42b090
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.00409a5f
add esp, 0xc
push str.winltstate.ltstate
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.0040a82d
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x1408]
push 0x400
push eax
call fcn.00409a5f
add esp, 0xc
mov ecx, dword [0x42d094]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea edx, [ebp - 0x1408]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402469
lea eax, [ebp - 0x1408]
push eax
lea ecx, [ebp - 0x808]
push str.ERROR__________________Failed_to_open_LISTER_EXE_STATE_FILE____s
push ecx
call fcn.0040ac5b
add esp, 0xc
lea edx, [ebp - 0x808]
mov esi, 0x42a090
call fcn.00401870
lea edx, [ebp - 0x808]
push str.Setting_Lister_State_VAlue_to_START
push edx
call fcn.0040ac5b
add esp, 8
lea edx, [ebp - 0x808]
mov esi, 0x42a090
call fcn.00401870
mov edx, str.LEAVING______________________________________CEHCommonOperations::EHGetListerExeState
mov dword [edi], 0
call fcn.00401870
mov eax, dword [0x42d094]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a50
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x140c]
push ecx
push 0x400
lea edx, [ebp - 0xc08]
push edx
push esi
mov dword [ebp - 0x140c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x40251b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1408]
push eax
lea ecx, [ebp - 0x808]
push str.ERROR__________________Failed_to_Read_LISTER_EXE_STATE_FILE____s
push ecx
call fcn.0040ac5b
add esp, 0xc
lea edx, [ebp - 0x808]
mov esi, 0x42a090
call fcn.00401870
lea edx, [ebp - 0x1408]
push edx
lea eax, [ebp - 0x808]
push str.ERROR__________________SETTING_LISTER_STATE_TO_START____s
push eax
call fcn.0040ac5b
add esp, 0xc
lea edx, [ebp - 0x808]
call fcn.00401870
mov edx, str.LEAVING______________________________________CEHCommonOperations::EHGetListerExeState
mov dword [edi], 0
call fcn.00401870
mov ecx, dword [0x42d094]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409a50
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x140c], 0
jne 0x402575
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x1408]
push edx
lea eax, [ebp - 0x808]
push str.ERROR__________________NO_DATA_FOUND____s
push eax
call fcn.0040ac5b
add esp, 0xc
lea edx, [ebp - 0x808]
mov esi, 0x42a090
call fcn.00401870
lea ecx, [ebp - 0x1408]
push ecx
lea edx, [ebp - 0x808]
push str.ERROR__________________SETTING_LISTER_STATE_TO_START____s
push edx
call fcn.0040ac5b
add esp, 0xc
jmp 0x40242e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x42d094]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebp - 0x140c]
lea eax, [ebp - 0xc08]
push str.START
push eax
mov byte [ebp + edx - 0xc08], 0
call fcn.00419730
add esp, 8
test eax, eax
jne 0x4025b5
mov dword [edi], eax
jmp 0x402635
lea ecx, [ebp - 0xc08]
push str.GETSTATE
push ecx
call fcn.00419730
add esp, 8
test eax, eax
jne 0x4025d5
mov dword [edi], 1
jmp 0x402635
lea edx, [ebp - 0xc08]
push str.UPLOADING
push edx
call fcn.00419730
add esp, 8
test eax, eax
jne 0x4025f5
mov dword [edi], 2
jmp 0x402635
lea eax, [ebp - 0xc08]
push str.WAITING
push eax
call fcn.00419730
add esp, 8
test eax, eax
jne 0x402615
mov dword [edi], 3
jmp 0x402635
lea ecx, [ebp - 0xc08]
push str.COMPLETE
push ecx
call fcn.00419730
add esp, 8
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
mov dword [edi], eax
mov edx, str.LEAVING______________________________________CEHCommonOperations::EHGetListerExeState
mov esi, 0x42a090
call fcn.00401870
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409a50
mov esp, ebp
pop ebp
ret