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

Disassembly:
push 0xffffffffffffffff
push 0x429ec8
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 0x402d8a
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
or esi, 0x10
push 0x1b0098
push eax
mov dword [esp + 0x4c], esi
call ebx
test eax, eax
je 0x402dc8
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 0x402e07
cmp esi, dword [esp + 0x18]
jne 0x402e43
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 0x402b3e
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 0x402ba3
mov ecx, dword [esp + 0x10]
mov eax, esi
sub eax, ecx
je 0x402bdc
add edi, ecx
inc ebx
cmp ebx, 4
mov esi, eax
ja 0x402be1
jmp 0x402b73
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 0x402be9
test esi, esi
jne 0x402e7e
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 0x402c24
mov ecx, dword [esp + 0x10]
mov eax, esi
sub eax, ecx
je 0x402c5e
add ebx, ecx
inc edi
cmp edi, 4
mov esi, eax
ja 0x402c63
jmp 0x402bf4
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 0x402cb0
test esi, esi
je 0x402cb0
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 0x402cab
call fcn.00422917
jmp 0x402d11
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 0x402cc8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402d48
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 0x402eb8
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 0x402d8a
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x402ab7
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 0x402eb3
mov eax, dword [0x436a10]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
push str.Reading_MCR_failed_
push ecx
mov byte [esp + 0x78], 1
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 0x402ebc
mov edx, dword [0x436a10]
mov dword [esp + 0x20], edx
lea eax, [esp + 0x20]
push str.Writing_MCR_failed_
push eax
mov byte [esp + 0x78], 2
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 0x402ebc
mov ecx, dword [0x436a10]
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x20]
push str.Reading_MCR_failed_
push edx
mov byte [esp + 0x78], 3
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 0x402ebc
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 0x402ebc
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 0x402ecd
push eax
call fcn.0040ce27
add esp, 4
test edi, edi
je 0x402eda
push edi
call fcn.0040ce27
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x402f4e
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.___Internal_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 + 0x279], 1
mov byte [esp + 0x70], 0
lea ecx, [esp + 0x78]
jmp 0x40303b
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.___Internal_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.Internal_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 + 0x279], 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