Function at 0x4023d0
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x429e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov eax, dword [0x436a10]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebp, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], eax
push 0xe
mov dword [esp + 0x74], esi
mov dword [esp + 0x24], esi
call fcn.0040cee4
mov edi, eax
push 0xe
mov dword [esp + 0x1c], edi
call fcn.0040cee4
add esp, 8
lea ecx, [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea edx, [esp + 0x18]
push esi
push ecx
push 4
push edx
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x280]
push esi
push esi
push 0x1b0094
push eax
call ebx
test eax, eax
je 0x40272a
mov esi, dword [esp + 0x18]
mov eax, dword [ebp + 0x280]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0
lea edx, [esp + 0x3c]
push 4
push edx
and esi, 0xffffffef
push 0x1b0098
push eax
mov dword [esp + 0x4c], esi
call ebx
test eax, eax
je 0x402760
mov eax, dword [ebp + 0x280]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 4
push edx
push 0
push 0
push 0x1b0094
push eax
call ebx
test eax, eax
je 0x402796
cmp esi, dword [esp + 0x18]
jne 0x4027c9
mov edx, edi
xor ecx, ecx
xor eax, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov word [edx + 0xc], cx
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov word [ecx + 0xc], ax
mov byte [eax + edi], al
inc eax
cmp eax, 0xe
jb 0x4024de
mov edx, dword [ebp + 0x280]
mov esi, dword [sym.imp.KERNEL32.dll_PurgeComm]
push 5
push edx
call esi
mov eax, dword [ebp + 0x280]
push 0xa
push eax
call esi
mov eax, dword [esp + 0x20]
mov esi, 0xe
inc eax
xor ebx, ebx
mov dword [esp + 0x20], eax
mov edx, dword [ebp + 0x280]
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402543
mov ecx, dword [esp + 0x10]
mov eax, esi
sub eax, ecx
je 0x40257c
add edi, ecx
inc ebx
cmp ebx, 4
mov esi, eax
ja 0x402581
jmp 0x402513
mov eax, dword [0x436a10]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push str.WriteFile_Failed_
push ecx
mov byte [esp + 0x78], 5
call fcn.0041d604
add esp, 8
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00422b57
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.00422917
cmp ebx, 4
jbe 0x402589
test esi, esi
jne 0x402804
mov ebx, dword [esp + 0x24]
xor edi, edi
mov esi, 0xe
mov eax, dword [ebp + 0x280]
lea edx, [esp + 0x10]
push 0
push edx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4025c4
mov ecx, dword [esp + 0x10]
mov eax, esi
sub eax, ecx
je 0x4025fe
add ebx, ecx
inc edi
cmp edi, 4
mov esi, eax
ja 0x402603
jmp 0x402594
mov ecx, dword [0x436a10]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x1c]
push str.ReadFile_Failed_
push edx
mov byte [esp + 0x78], 7
call fcn.0041d604
add esp, 8
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00422b57
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.00422917
cmp edi, 4
jbe 0x402650
test esi, esi
je 0x402650
mov eax, dword [0x436a10]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
push str.ReadFile_Failed_
push ecx
mov byte [esp + 0x78], 8
call fcn.0041d604
add esp, 8
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00422b57
mov eax, dword [esp + 0x20]
mov byte [esp + 0x70], 0
cmp eax, 2
lea ecx, [esp + 0x1c]
ja 0x40264b
call fcn.00422917
jmp 0x4026b1
call fcn.00422917
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov ecx, 0xe
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402668
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4026e8
mov edx, dword [0x436a10]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
push str.Comparison_Different__Test_Failed_
push eax
mov byte [esp + 0x78], 9
call fcn.0041d604
add esp, 8
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00422b57
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.00422917
cmp dword [esp + 0x20], 2
ja 0x40283e
mov eax, dword [ebp + 0x280]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
push 4
push edx
push 0
push 0
push 0x1b0094
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [esp + 0x14]
test eax, eax
je 0x40272a
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x402457
mov ecx, dword [0x436a10]
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x20]
push str.Comparison_same__Test_passed_
push edx
mov byte [esp + 0x78], 0xa
call fcn.0041d604
add esp, 8
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00422b57
mov dword [esp + 0x30], 1
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x20]
jmp 0x402839
mov eax, dword [0x436a10]
mov dword [esp + 0x20], eax
push 0
push 0
push eax
mov byte [esp + 0x7c], 1
call fcn.004256be
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.00422b57
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0
call fcn.00422917
jmp 0x402842
mov eax, dword [0x436a10]
mov dword [esp + 0x20], eax
push 0
push 0
push eax
mov byte [esp + 0x7c], 2
call fcn.004256be
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.00422b57
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0
call fcn.00422917
jmp 0x402842
mov eax, dword [0x436a10]
mov dword [esp + 0x20], eax
push 0
push 0
push eax
mov byte [esp + 0x7c], 3
call fcn.004256be
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.00422b57
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0
call fcn.00422917
jmp 0x402842
mov eax, dword [0x436a10]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
push str.Not_able_to_set_the_loopback_mode_
push ecx
mov byte [esp + 0x78], 4
call fcn.0041d604
add esp, 8
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00422b57
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 0
call fcn.00422917
jmp 0x402842
mov edx, dword [0x436a10]
mov dword [esp + 0x20], edx
lea eax, [esp + 0x20]
push str.WriteFile_Failed_
push eax
mov byte [esp + 0x78], 6
call fcn.0041d604
add esp, 8
lea ecx, [esp + 0x20]
push 0xffffffffffffffff
call fcn.00422b57
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x20]
call fcn.00422917
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x402853
push eax
call fcn.0040ce27
add esp, 4
test edi, edi
je 0x402860
push edi
call fcn.0040ce27
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4028d4
lea ecx, [esp + 0x28]
push str.PASS
push ecx
call fcn.0041d604
mov edx, dword [0x436a10]
add esp, 8
mov dword [esp + 0x78], edx
lea eax, [esp + 0x78]
push str.___External_LoopBack_Test_PASSED____
push eax
mov byte [esp + 0x78], 0xb
call fcn.0041d604
mov ecx, dword [esp + 0x80]
add esp, 8
push ecx
mov ecx, ebp
call fcn.00403a50
push 0xffffffffffffffff
lea ecx, [esp + 0x7c]
mov dword [ebp + 0x2d0], 1
call fcn.00422b57
mov byte [ebp + 0x27a], 1
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x78]
jmp 0x4029c1
lea edx, [esp + 0x28]
push str.FAIL
push edx
call fcn.0041d604
mov eax, dword [0x436a10]
add esp, 8
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x24]
push str.___External_LoopBack_Test_FAILED____
push ecx
mov byte [esp + 0x78], 0xc
call fcn.0041d604
mov edx, dword [esp + 0x2c]
add esp, 8
mov ecx, ebp
push edx
call fcn.00403a50
mov edi, str.External_LoopBack_Test_FAILED_for_:
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x2d4], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x78]
push ecx
push edx
lea ecx, [ebp + 0x2b4]
call fcn.00402a00
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
call fcn.00422917
mov ecx, dword [ebp + 0x258]
lea eax, [esp + 0x34]
push eax
push 0
push 0x180
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.00422b57
mov byte [ebp + 0x27a], 0
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x24]
call fcn.00422917
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.00422b57
mov ebp, dword [ebp + 0x2d0]
lea ecx, [esp + 0x28]
mov dword [esp + 0x70], 0xffffffff
call fcn.00422917
mov ecx, dword [esp + 0x68]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 4