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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x810c
call fcn.0045f540
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
jne 0x42c10f
mov eax, dword [0x4910e8]
test dword [0x4912e8], eax
je 0x42c6ca
push str.CSessionPipeClient::NamePipeInstance:_NULL_session_pipe_client_instance_
call fcn.0040a4a0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x492164]
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 0x42c66a
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x42c66a
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 0x42c645
cmp dword [esp + 0x7c], 0x620
jne 0x42c645
mov eax, dword [esp + 0x80]
dec eax
cmp eax, 0x3c
mov esi, 2
mov dword [esp + 0x40], esi
ja case.0x42c1b1.3
movzx eax, byte [eax + 0x42c70c]
jmp dword [eax*4 + 0x42c6d4]
mov ecx, dword [0x4912e8]
test dword [0x4910e8], ecx
je 0x42c1d3
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_INFORMKBEVENT_is_called
call fcn.0040a4a0
add esp, 4
mov ecx, dword [0x4920b8]
test ecx, ecx
jne 0x42c201
mov edx, dword [0x4912e8]
test dword [0x4910e8], edx
je case.0x42c1b1.3
push str.WARNING...SOFTWARE_BUG..._g_pExtEvent_is_NULL
call fcn.0040a4a0
add esp, 4
jmp case.0x42c1b1.3
lea eax, [esp + 0x88]
push eax
call fcn.00402140
jmp case.0x42c1b1.3
mov ecx, dword [0x4910e8]
test dword [0x4912e8], ecx
je 0x42c22e
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_REGISTERCOMOBJECT_is_called
call fcn.0040a4a0
add esp, 4
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x44], esi
call fcn.00446e50
add esp, 4
cmp eax, 0x80000000
jne 0x42c25b
lea eax, [esp + 0x88]
push eax
push SysReAllocString
lea ecx, [ebx + 0x34]
jmp 0x42c288
cmp eax, 0x80000001
jne 0x42c273
lea ecx, [esp + 0x88]
push ecx
push eax
lea ecx, [ebx + 0x180]
jmp 0x42c288
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x42c299
lea edx, [esp + 0x88]
push edx
push eax
mov ecx, 0x4922b0
call fcn.00446ed0
cmp dword [0x486450], eax
jne case.0x42c1b1.3
mov eax, dword [0x4910e8]
test dword [0x4912e8], eax
je 0x42c684
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_REGISTERCOMOBJECT__failed_to_register_ADC_COM_callback
jmp 0x42c67c
mov ecx, dword [0x4910e8]
test dword [0x4912e8], ecx
je 0x42c2cf
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_UNREGISTERCOMOBJECT_is_called
call fcn.0040a4a0
add esp, 4
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x44], esi
call fcn.00446e50
add esp, 4
cmp eax, 0x80000000
jne 0x42c2fc
lea eax, [esp + 0x88]
push eax
push SysReAllocString
lea ecx, [ebx + 0x34]
jmp 0x42c329
cmp eax, 0x80000001
jne 0x42c314
lea ecx, [esp + 0x88]
push ecx
push eax
lea ecx, [ebx + 0x180]
jmp 0x42c329
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x42c336
lea edx, [esp + 0x88]
push edx
push eax
mov ecx, 0x4922b0
call fcn.00447090
test al, al
jne case.0x42c1b1.3
mov eax, dword [0x4910e8]
test dword [0x4912e8], eax
je 0x42c684
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_UNREGISTERCOMOBJECT__failed_to_unregister_ADC_COM_callback
jmp 0x42c67c
mov ecx, dword [0x4910e8]
test dword [0x4912e8], ecx
je 0x42c36c
push str.NamePipeInstance:_EXTEVENT_REQTYPE_SVR_APPLYADCBYSELECTED_is_called
call fcn.0040a4a0
add esp, 4
mov eax, dword [0x4920d8]
test eax, eax
mov ebx, 1
mov dword [esp + 0x40], ebx
je case.0x42c1b1.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 0x42c3d6
push 0
mov ecx, 0x492a60
call fcn.0042de80
test eax, eax
je 0x42c3cb
push 0
mov ecx, eax
call fcn.00437ab0
test ah, ah
js 0x42c3d4
mov dword [esp + 0x40], ebx
jmp case.0x42c1b1.3
xor eax, eax
mov edx, dword [0x49e994]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push 0x42beb0
call fcn.00424010
mov esi, eax
add esp, 0x14
test esi, esi
je 0x42c487
mov eax, dword [0x4910e8]
test dword [0x4912e8], eax
je 0x42c416
push str.CSessionPipeClient::NamePipeInstance__CreateThread_for_ADC_success
call fcn.0040a4a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x42c1b1.3
mov ecx, dword [0x4910e8]
test dword [0x4912e8], ecx
je 0x42c43d
push str.NamePipeInstance:_EXTEVENT_REQTYPE_SVR_APPLYADCBYSELECTED_is_called
call fcn.0040a4a0
add esp, 4
mov eax, dword [0x4920d8]
test eax, eax
mov dword [esp + 0x40], 1
je case.0x42c1b1.3
mov edx, dword [0x49e994]
push edx
lea eax, [esp + 0x10]
push eax
push 0
lea ecx, [esp + 0x94]
push ecx
push 0x42bf20
mov dword [esp + 0x54], esi
mov dword [esp + 0x20], 0
call fcn.00424010
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x42c4b2
mov edx, dword [0x4910e8]
test dword [0x4912e8], edx
je case.0x42c1b1.3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSessionPipeClient::NamePipeInstance__CreateThread_for_ADC_failed__err_d
call fcn.0040a4a0
add esp, 8
jmp case.0x42c1b1.3
mov eax, dword [0x4910e8]
test dword [0x4912e8], eax
je 0x42c4cc
push str.CSessionPipeClient::NamePipeInstance__CreateThread_for_ADC_success
call fcn.0040a4a0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x42c1b1.3
mov ecx, dword [0x4910e8]
test dword [0x4912e8], ecx
je 0x42c4f3
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_KILLCLIENTPROCESS_is_called
call fcn.0040a4a0
add esp, 4
mov edx, dword [0x4920b0]
push 0
push 0
push 0x12
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x42c1b1.3
cmp dword [0x492098], 6
ja case.0x42c1b1.3
mov ecx, dword [0x4920d8]
test ecx, ecx
je case.0x42c1b1.3
call fcn.00417870
jmp case.0x42c1b1.3
mov eax, dword [0x4920b4]
test eax, eax
jne 0x42c546
mov eax, dword [0x4910e8]
test dword [0x4912e8], eax
jmp 0x42c58b
mov ecx, dword [0x4910e8]
test dword [0x4912e8], ecx
je 0x42c561
push str.Client_got_m_hSMIBiosEvent_request_n
call fcn.0040a4a0
add esp, 4
mov edx, dword [0x4920b4]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x42c1b1.3
mov eax, dword [0x4920b4]
test eax, eax
jne 0x42c5a3
mov ecx, dword [0x4910e8]
test dword [0x4912e8], ecx
je case.0x42c1b1.3
push str.Session:_g_pHKPoller_is_NULL
call fcn.0040a4a0
add esp, 4
jmp case.0x42c1b1.3
mov edx, dword [eax + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x42c1b1.3
mov eax, dword [0x4912e8]
test dword [0x4910e8], eax
je case.0x42c1b1.29
push str.Session:_NamePipeInstance._Got_AutoDisplay_or_SaveProfile_n
call fcn.0040a4a0
add esp, 4
test byte [0x49216c], 4
jne case.0x42c1b1.3
mov ecx, dword [0x4912e8]
test dword [0x4910e8], ecx
je 0x42c5fc
mov edx, dword [esp + 0x80]
push edx
push str.Session:_NamePipeInstance._prepare_to_add_task__d__to_queue_n
call fcn.0040a4a0
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.0042d040
mov ecx, dword [0x4a1338]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x42c1b1.3
mov ecx, dword [0x4920d8]
test ecx, ecx
je case.0x42c1b1.3
push 0
call fcn.004178b0
jmp case.0x42c1b1.3
mov edx, dword [0x4910e8]
test dword [0x4912e8], edx
mov dword [esp + 0x40], 1
je case.0x42c1b1.3
push str.NamePipeSessionInstance:_Pipe_read_msg_contents_error__something_wrong
call fcn.0040a4a0
add esp, 4
jmp case.0x42c1b1.3
mov eax, dword [0x4910e8]
test dword [0x4912e8], eax
je 0x42c684
push str.NamePipeSessionInstanceThread:_Read_from_Pipe_Failed
call fcn.0040a4a0
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 0x42c6af
cmp dword [esp + 0x10], 0x2c
je 0x42c6ca
mov ecx, dword [0x4910e8]
test dword [0x4912e8], ecx
je 0x42c6ca
push str.Write_to_Pipe_Failed
call fcn.0040a4a0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret