Function at 0x42b8c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x810c
call fcn.0045ed20
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
jne 0x42b8ff
mov eax, dword [0x4900e8]
test dword [0x4902e8], eax
je 0x42beba
push str.CSessionPipeClient::NamePipeInstance:_NULL_session_pipe_client_instance_
call fcn.0040aac0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x491164]
push 0
lea edx, [esp + 0x18]
push edx
push 0x7a80
lea eax, [esp + 0x6a4]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov dword [esp + 0x30], 0x2c
mov dword [esp + 0x34], 0xf
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42be5a
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x42be5a
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x698]
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x78], 0x8001
jne 0x42be35
cmp dword [esp + 0x7c], 0x620
jne 0x42be35
mov eax, dword [esp + 0x80]
dec eax
cmp eax, 0x3c
mov esi, 2
mov dword [esp + 0x40], esi
ja case.0x42b9a1.3
movzx eax, byte [eax + 0x42befc]
jmp dword [eax*4 + 0x42bec4]
mov ecx, dword [0x4900e8]
test dword [0x4902e8], ecx
je 0x42b9c3
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_INFORMKBEVENT_is_called
call fcn.0040aac0
add esp, 4
mov ecx, dword [0x4910b8]
test ecx, ecx
jne 0x42b9f1
mov edx, dword [0x4902e8]
test dword [0x4900e8], edx
je case.0x42b9a1.3
push str.WARNING...SOFTWARE_BUG..._g_pExtEvent_is_NULL
call fcn.0040aac0
add esp, 4
jmp case.0x42b9a1.3
lea eax, [esp + 0x88]
push eax
call fcn.00402150
jmp case.0x42b9a1.3
mov ecx, dword [0x4900e8]
test dword [0x4902e8], ecx
je 0x42ba1e
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_REGISTERCOMOBJECT_is_called
call fcn.0040aac0
add esp, 4
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x44], esi
call fcn.00446240
add esp, 4
cmp eax, 0x80000000
jne 0x42ba4b
lea eax, [esp + 0x88]
push eax
push SysReAllocString
lea ecx, [ebx + 0x34]
jmp 0x42ba78
cmp eax, 0x80000001
jne 0x42ba63
lea ecx, [esp + 0x88]
push ecx
push eax
lea ecx, [ebx + 0x180]
jmp 0x42ba78
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x42ba89
lea edx, [esp + 0x88]
push edx
push eax
mov ecx, 0x4912b0
call fcn.004462c0
cmp dword [0x485f08], eax
jne case.0x42b9a1.3
mov eax, dword [0x4900e8]
test dword [0x4902e8], eax
je 0x42be74
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_REGISTERCOMOBJECT__failed_to_register_ADC_COM_callback
jmp 0x42be6c
mov ecx, dword [0x4900e8]
test dword [0x4902e8], ecx
je 0x42babf
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_UNREGISTERCOMOBJECT_is_called
call fcn.0040aac0
add esp, 4
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x44], esi
call fcn.00446240
add esp, 4
cmp eax, 0x80000000
jne 0x42baec
lea eax, [esp + 0x88]
push eax
push SysReAllocString
lea ecx, [ebx + 0x34]
jmp 0x42bb19
cmp eax, 0x80000001
jne 0x42bb04
lea ecx, [esp + 0x88]
push ecx
push eax
lea ecx, [ebx + 0x180]
jmp 0x42bb19
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x42bb26
lea edx, [esp + 0x88]
push edx
push eax
mov ecx, 0x4912b0
call fcn.00446480
test al, al
jne case.0x42b9a1.3
mov eax, dword [0x4900e8]
test dword [0x4902e8], eax
je 0x42be74
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_UNREGISTERCOMOBJECT__failed_to_unregister_ADC_COM_callback
jmp 0x42be6c
mov ecx, dword [0x4900e8]
test dword [0x4902e8], ecx
je 0x42bb5c
push str.NamePipeInstance:_EXTEVENT_REQTYPE_SVR_APPLYADCBYSELECTED_is_called
call fcn.0040aac0
add esp, 4
mov eax, dword [0x4910d8]
test eax, eax
mov ebx, 1
mov dword [esp + 0x40], ebx
je case.0x42b9a1.3
mov dword [esp + 0x40], esi
mov ecx, 0xa
lea esi, [esp + 0x88]
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x80], 0x38
mov dword [esp + 0xc], 0
lea eax, [esp + 0x50]
jne 0x42bbc6
push 0
mov ecx, 0x491a60
call fcn.0042d680
test eax, eax
je 0x42bbbb
push 0
mov ecx, eax
call fcn.00437340
test ah, ah
js 0x42bbc4
mov dword [esp + 0x40], ebx
jmp case.0x42b9a1.3
xor eax, eax
mov edx, dword [0x4929e0]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push 0x42b6a0
call fcn.00423c00
mov esi, eax
add esp, 0x14
test esi, esi
je 0x42bc77
mov eax, dword [0x4900e8]
test dword [0x4902e8], eax
je 0x42bc06
push str.CSessionPipeClient::NamePipeInstance__CreateThread_for_ADC_success
call fcn.0040aac0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x42b9a1.3
mov ecx, dword [0x4900e8]
test dword [0x4902e8], ecx
je 0x42bc2d
push str.NamePipeInstance:_EXTEVENT_REQTYPE_SVR_APPLYADCBYSELECTED_is_called
call fcn.0040aac0
add esp, 4
mov eax, dword [0x4910d8]
test eax, eax
mov dword [esp + 0x40], 1
je case.0x42b9a1.3
mov edx, dword [0x4929e0]
push edx
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x94]
push ecx
push 0x42b710
mov dword [esp + 0x54], esi
mov dword [esp + 0x20], 0
call fcn.00423c00
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x42bca2
mov edx, dword [0x4900e8]
test dword [0x4902e8], edx
je case.0x42b9a1.3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSessionPipeClient::NamePipeInstance__CreateThread_for_ADC_failed__err_d
call fcn.0040aac0
add esp, 8
jmp case.0x42b9a1.3
mov eax, dword [0x4900e8]
test dword [0x4902e8], eax
je 0x42bcbc
push str.CSessionPipeClient::NamePipeInstance__CreateThread_for_ADC_success
call fcn.0040aac0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x42b9a1.3
mov ecx, dword [0x4900e8]
test dword [0x4902e8], ecx
je 0x42bce3
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_KILLCLIENTPROCESS_is_called
call fcn.0040aac0
add esp, 4
mov edx, dword [0x4910b0]
push 0
push 0
push 0x12
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x42b9a1.3
cmp dword [0x491098], 6
ja case.0x42b9a1.3
mov ecx, dword [0x4910d8]
test ecx, ecx
je case.0x42b9a1.3
call fcn.004177f0
jmp case.0x42b9a1.3
mov eax, dword [0x4910b4]
test eax, eax
jne 0x42bd36
mov eax, dword [0x4900e8]
test dword [0x4902e8], eax
jmp 0x42bd7b
mov ecx, dword [0x4900e8]
test dword [0x4902e8], ecx
je 0x42bd51
push str.Client_got_m_hSMIBiosEvent_request_n
call fcn.0040aac0
add esp, 4
mov edx, dword [0x4910b4]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x42b9a1.3
mov eax, dword [0x4910b4]
test eax, eax
jne 0x42bd93
mov ecx, dword [0x4900e8]
test dword [0x4902e8], ecx
je case.0x42b9a1.3
push str.Session:_g_pHKPoller_is_NULL
call fcn.0040aac0
add esp, 4
jmp case.0x42b9a1.3
mov edx, dword [eax + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x42b9a1.3
mov eax, dword [0x4902e8]
test dword [0x4900e8], eax
je case.0x42b9a1.29
push str.Session:_NamePipeInstance._Got_AutoDisplay_or_SaveProfile_n
call fcn.0040aac0
add esp, 4
test byte [0x49116c], 4
jne case.0x42b9a1.3
mov ecx, dword [0x4902e8]
test dword [0x4900e8], ecx
je 0x42bdec
mov edx, dword [esp + 0x80]
push edx
push str.Session:_NamePipeInstance._prepare_to_add_task__d__to_queue_n
call fcn.0040aac0
add esp, 8
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x58]
mov dword [ecx + 8], eax
lea ecx, [ebx + 0x14]
call fcn.0042c830
mov ecx, dword [0x495388]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x42b9a1.3
mov ecx, dword [0x4910d8]
test ecx, ecx
je case.0x42b9a1.3
push 0
call fcn.00417830
jmp case.0x42b9a1.3
mov edx, dword [0x4900e8]
test dword [0x4902e8], edx
mov dword [esp + 0x40], 1
je case.0x42b9a1.3
push str.NamePipeSessionInstance:_Pipe_read_msg_contents_error__something_wrong
call fcn.0040aac0
add esp, 4
jmp case.0x42b9a1.3
mov eax, dword [0x4900e8]
test dword [0x4902e8], eax
je 0x42be74
push str.NamePipeSessionInstanceThread:_Read_from_Pipe_Failed
call fcn.0040aac0
add esp, 4
mov dword [esp + 0x40], 1
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x2c
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42be9f
cmp dword [esp + 0x10], 0x2c
je 0x42beba
mov ecx, dword [0x4900e8]
test dword [0x4902e8], ecx
je 0x42beba
push str.Write_to_Pipe_Failed
call fcn.0040aac0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret