Function at 0x406320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.00415a90
mov eax, dword [0x421494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
push edi
mov edx, str.ENTERING______________________________________CEHCommonOperations::EHGetListerExeState
mov esi, 0x423540
call fcn.004018a0
push str.EHNULL
push 0x424540
call fcn.00408a80
add esp, 8
test eax, eax
je 0x4063b2
push 0x424540
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.0040790f
add esp, 0xc
push str.winltstate.ltstate
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.004086dd
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x1408]
push 0x400
push eax
call fcn.0040790f
add esp, 0xc
mov ecx, dword [0x426544]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
lea edx, [ebp - 0x1408]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406457
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.00408b0b
add esp, 0xc
lea edx, [ebp - 0x808]
mov esi, 0x423540
call fcn.004018a0
lea edx, [ebp - 0x808]
push str.Setting_Lister_State_VAlue_to_START
push edx
call fcn.00408b0b
add esp, 8
lea edx, [ebp - 0x808]
mov esi, 0x423540
call fcn.004018a0
mov edx, str.LEAVING______________________________________CEHCommonOperations::EHGetListerExeState
call fcn.004018a0
mov eax, dword [0x426544]
push eax
call ebx
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406340
push edi
lea ecx, [ebp - 0x140c]
push ecx
push 0x400
lea edx, [ebp - 0xc08]
push edx
push esi
mov dword [ebp - 0x140c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x4064f7
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.00408b0b
add esp, 0xc
lea edx, [ebp - 0x808]
mov esi, 0x423540
call fcn.004018a0
lea edx, [ebp - 0x1408]
push edx
lea eax, [ebp - 0x808]
push str.ERROR__________________SETTING_LISTER_STATE_TO_START____s
push eax
call fcn.00408b0b
add esp, 0xc
lea edx, [ebp - 0x808]
call fcn.004018a0
mov edx, str.LEAVING______________________________________CEHCommonOperations::EHGetListerExeState
call fcn.004018a0
mov ecx, dword [0x426544]
push ecx
call ebx
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406340
cmp dword [ebp - 0x140c], edi
jne 0x406550
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.00408b0b
add esp, 0xc
lea edx, [ebp - 0x808]
mov esi, 0x423540
call fcn.004018a0
lea ecx, [ebp - 0x1408]
push ecx
lea edx, [ebp - 0x808]
push str.ERROR__________________SETTING_LISTER_STATE_TO_START____s
push edx
call fcn.00408b0b
add esp, 0xc
jmp 0x406425
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x426544]
push ecx
call ebx
mov edx, dword [ebp - 0x140c]
lea eax, [ebp - 0xc08]
push str.START
push eax
mov byte [ebp + edx - 0xc08], 0
call fcn.00417360
add esp, 8
test eax, eax
je 0x4065fc
lea ecx, [ebp - 0xc08]
push str.GETSTATE
push ecx
call fcn.00417360
add esp, 8
test eax, eax
jne 0x4065a2
lea edi, [eax + 1]
jmp 0x4065fc
lea edx, [ebp - 0xc08]
push str.UPLOADING
push edx
call fcn.00417360
add esp, 8
test eax, eax
jne 0x4065bf
lea edi, [eax + 2]
jmp 0x4065fc
lea eax, [ebp - 0xc08]
push str.WAITING
push eax
call fcn.00417360
add esp, 8
test eax, eax
jne 0x4065dc
lea edi, [eax + 3]
jmp 0x4065fc
lea ecx, [ebp - 0xc08]
push str.COMPLETE
push ecx
call fcn.00417360
add esp, 8
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xfffffffc
add edi, 4
mov edx, str.LEAVING______________________________________CEHCommonOperations::EHGetListerExeState
mov esi, 0x423540
call fcn.004018a0
cmp edi, 4
je 0x406620
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406340
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407900
mov esp, ebp
pop ebp
ret