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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x80e0
call fcn.00461300
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
jne 0x42c0dc
mov eax, dword [0x49a0e8]
test dword [0x49a2e8], eax
je 0x42c69e
push str.CSessionPipeClient::NamePipeInstance:_NULL_session_pipe_client_instance_
call fcn.0040acd0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x49b704]
push 0
lea edx, [ebp + 8]
push edx
push 0x7a80
lea eax, [ebp - 0x80e0]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov dword [ebp - 0x30], 0x2c
mov dword [ebp - 0x2c], 0xf
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c642
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x42c642
mov edx, ecx
shr ecx, 2
lea esi, [ebp - 0x80e0]
lea edi, [ebp - 0x660]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x660], 0x8001
jne 0x42c61e
cmp dword [ebp - 0x65c], 0x620
jne 0x42c61e
mov eax, dword [ebp - 0x658]
dec eax
cmp eax, 0x3c
mov esi, 2
mov dword [ebp - 0xc], esi
ja case.0x42c17b.3
movzx eax, byte [eax + 0x42c6e0]
jmp dword [eax*4 + 0x42c6a8]
mov ecx, dword [0x49a2e8]
test dword [0x49a0e8], ecx
je 0x42c19d
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_INFORMKBEVENT_is_called
call fcn.0040acd0
add esp, 4
mov ecx, dword [0x49b658]
test ecx, ecx
jne 0x42c1cb
mov edx, dword [0x49a2e8]
test dword [0x49a0e8], edx
je case.0x42c17b.3
push str.WARNING...SOFTWARE_BUG..._g_pExtEvent_is_NULL
call fcn.0040acd0
add esp, 4
jmp case.0x42c17b.3
lea eax, [ebp - 0x650]
push eax
call fcn.00401cf0
jmp case.0x42c17b.3
mov ecx, dword [0x49a0e8]
test dword [0x49a2e8], ecx
je 0x42c1f7
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_REGISTERCOMOBJECT_is_called
call fcn.0040acd0
add esp, 4
lea edx, [ebp - 0x650]
push edx
mov dword [ebp - 0xc], esi
call fcn.00447b40
add esp, 4
cmp eax, 0x80000000
jne 0x42c221
lea eax, [ebp - 0x650]
push eax
push SysReAllocString
lea ecx, [ebx + 0x34]
jmp 0x42c24c
cmp eax, 0x80000001
jne 0x42c238
lea ecx, [ebp - 0x650]
push ecx
push eax
lea ecx, [ebx + 0x180]
jmp 0x42c24c
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x42c25d
lea edx, [ebp - 0x650]
push edx
push eax
mov ecx, 0x49b850
call fcn.00447bd0
cmp dword [0x48e850], eax
jne case.0x42c17b.3
mov eax, dword [0x49a0e8]
test dword [0x49a2e8], eax
je 0x42c65c
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_REGISTERCOMOBJECT__failed_to_register_ADC_COM_callback
jmp 0x42c654
mov ecx, dword [0x49a0e8]
test dword [0x49a2e8], ecx
je 0x42c293
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_UNREGISTERCOMOBJECT_is_called
call fcn.0040acd0
add esp, 4
lea edx, [ebp - 0x650]
push edx
mov dword [ebp - 0xc], esi
call fcn.00447b40
add esp, 4
cmp eax, 0x80000000
jne 0x42c2bd
lea eax, [ebp - 0x650]
push eax
push SysReAllocString
lea ecx, [ebx + 0x34]
jmp 0x42c2e8
cmp eax, 0x80000001
jne 0x42c2d4
lea ecx, [ebp - 0x650]
push ecx
push eax
lea ecx, [ebx + 0x180]
jmp 0x42c2e8
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x42c2f5
lea edx, [ebp - 0x650]
push edx
push eax
mov ecx, 0x49b850
call fcn.00447d90
test al, al
jne case.0x42c17b.3
mov eax, dword [0x49a0e8]
test dword [0x49a2e8], eax
je 0x42c65c
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_UNREGISTERCOMOBJECT__failed_to_unregister_ADC_COM_callback
jmp 0x42c654
mov ecx, dword [0x49a0e8]
test dword [0x49a2e8], ecx
je 0x42c32b
push str.NamePipeInstance:_EXTEVENT_REQTYPE_SVR_APPLYADCBYSELECTED_is_called
call fcn.0040acd0
add esp, 4
mov eax, dword [0x49b678]
test eax, eax
mov edi, 1
mov dword [ebp - 0xc], edi
je case.0x42c17b.3
mov eax, dword [ebp - 0x658]
xor ebx, ebx
cmp eax, 0x38
mov dword [ebp - 0xc], esi
jne 0x42c373
push ebx
mov ecx, 0x49c088
call fcn.0042dde0
test eax, eax
je 0x42c36b
push ebx
mov ecx, eax
call fcn.00437a80
test ah, ah
js 0x42c392
mov dword [ebp - 0xc], edi
jmp case.0x42c17b.3
push 0x28
call fcn.00460f8e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42c36b
mov ecx, 0xa
lea esi, [ebp - 0x650]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x4a7fd0]
push edx
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x42be40
mov dword [ebp - 4], 0
call fcn.00423be0
mov esi, eax
mov eax, dword [0x49a2e8]
add esp, 0x14
test esi, esi
jne 0x42c3e6
mov ecx, dword [0x49a0e8]
test ecx, eax
je case.0x42c17b.3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSessionPipeClient::NamePipeInstance__CreateThread_for_ADC_failed__err_d
call fcn.0040acd0
add esp, 8
jmp case.0x42c17b.3
mov edx, dword [0x49a0e8]
test edx, eax
je 0x42c3fd
push str.CSessionPipeClient::NamePipeInstance__CreateThread_for_ADC_success
call fcn.0040acd0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x42c17b.3
mov eax, dword [0x49a0e8]
test dword [0x49a2e8], eax
je 0x42c423
push str.NamePipeInstance:_EXTEVENT_REQTYPE_SVR_APPLYADCBYSELECTED_is_called
call fcn.0040acd0
add esp, 4
mov eax, dword [0x49b678]
test eax, eax
mov dword [ebp - 0xc], 1
je case.0x42c17b.3
mov ecx, dword [0x4a7fd0]
push ecx
lea edx, [ebp - 4]
push edx
push 0
lea eax, [ebp - 0x650]
push eax
push 0x42bec0
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], 0
call fcn.00423be0
mov esi, eax
mov eax, dword [0x49a2e8]
add esp, 0x14
test esi, esi
jne 0x42c494
mov ecx, dword [0x49a0e8]
test ecx, eax
je case.0x42c17b.3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSessionPipeClient::NamePipeInstance__CreateThread_for_ADC_failed__err_d
call fcn.0040acd0
add esp, 8
jmp case.0x42c17b.3
mov edx, dword [0x49a0e8]
test edx, eax
je 0x42c4ab
push str.CSessionPipeClient::NamePipeInstance__CreateThread_for_ADC_success
call fcn.0040acd0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x42c17b.3
mov eax, dword [0x49a0e8]
test dword [0x49a2e8], eax
je 0x42c4d1
push str.NamePipeInstance:_EXTEVENT_REQTYPE_CLT_KILLCLIENTPROCESS_is_called
call fcn.0040acd0
add esp, 4
mov ecx, dword [0x49b650]
push 0
push 0
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.0x42c17b.3
cmp dword [0x49b638], 6
ja case.0x42c17b.3
mov ecx, dword [0x49b678]
test ecx, ecx
je case.0x42c17b.3
call fcn.00417c10
jmp case.0x42c17b.3
mov eax, dword [0x49b654]
test eax, eax
jne 0x42c525
mov edx, dword [0x49a0e8]
test dword [0x49a2e8], edx
jmp 0x42c568
mov eax, dword [0x49a0e8]
test dword [0x49a2e8], eax
je 0x42c53f
push str.Client_got_m_hSMIBiosEvent_request_n
call fcn.0040acd0
add esp, 4
mov ecx, dword [0x49b654]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x42c17b.3
mov eax, dword [0x49b654]
test eax, eax
jne 0x42c580
mov eax, dword [0x49a0e8]
test dword [0x49a2e8], eax
je case.0x42c17b.3
push str.Session:_g_pHKPoller_is_NULL
call fcn.0040acd0
add esp, 4
jmp case.0x42c17b.3
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x42c17b.3
mov edx, dword [0x49a0e8]
test dword [0x49a2e8], edx
je case.0x42c17b.29
push str.Session:_NamePipeInstance._Got_AutoDisplay_or_SaveProfile_n
call fcn.0040acd0
add esp, 4
test byte [0x49b70c], 4
jne case.0x42c17b.3
mov eax, dword [0x49a2e8]
test dword [0x49a0e8], eax
je 0x42c5d8
mov ecx, dword [ebp - 0x658]
push ecx
push str.Session:_NamePipeInstance._prepare_to_add_task__d__to_queue_n
call fcn.0040acd0
add esp, 8
mov ecx, dword [ebp - 0x658]
mov eax, dword [ebp - 0x650]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x38]
lea ecx, [ebx + 0x14]
mov dword [edx + 8], eax
call fcn.0042d000
mov ecx, dword [0x4aa7e0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp case.0x42c17b.3
mov ecx, dword [0x49b678]
test ecx, ecx
je case.0x42c17b.3
push 0
call fcn.00417c50
jmp case.0x42c17b.3
mov edx, dword [0x49a0e8]
test dword [0x49a2e8], edx
mov dword [ebp - 0xc], 1
je case.0x42c17b.3
push str.NamePipeSessionInstance:_Pipe_read_msg_contents_error__something_wrong
call fcn.0040acd0
add esp, 4
jmp case.0x42c17b.3
mov eax, dword [0x49a0e8]
test dword [0x49a2e8], eax
je 0x42c65c
push str.NamePipeSessionInstanceThread:_Read_from_Pipe_Failed
call fcn.0040acd0
add esp, 4
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 8]
push ecx
push 0x2c
lea edx, [ebp - 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42c683
cmp dword [ebp - 8], 0x2c
je 0x42c69e
mov ecx, dword [0x49a0e8]
test dword [0x49a2e8], ecx
je 0x42c69e
push str.Write_to_Pipe_Failed
call fcn.0040acd0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret