Function at 0x4103d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43821b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
mov ecx, dword [0x446b48]
xor eax, eax
mov dword [esp + 0xc], eax
push ebx
mov dword [esp + 0x14], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x1c], eax
push esi
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0xdc]
cmp eax, ebp
mov dword [esp + 0xc8], ebp
mov dword [edx], ebp
jg 0x41044e
lea ecx, [esp + 0x10]
mov dword [esp + 0xc8], 0xffffffff
call fcn.0042ab0d
mov eax, 5
jmp 0x41086f
push ebp
mov esi, 1
push ebp
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebp
mov dword [esp + 0x28], eax
jne 0x410479
or edi, 0xffffffff
push edi
push ebp
push 0xe3
call fcn.00431d0a
jmp 0x4107f9
mov ebx, dword [esp + 0xd0]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x44bce0]
cmp eax, 2
je 0x41049c
cmp eax, 5
jne 0x4104a1
call fcn.004108b0
push esi
push ebp
push ebp
lea eax, [esp + 0x3c]
push ebp
push eax
call edi
test eax, eax
je 0x4104ed
call fcn.004338c1
mov eax, dword [eax + 4]
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x4104de
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push ebp
push ebp
lea ecx, [esp + 0x3c]
push ebp
push ecx
call edi
test eax, eax
jne 0x4104b0
mov eax, dword [0x44b258]
cmp dword [eax + 0x64], esi
je 0x410520
lea edx, [esp + 0x50]
lea eax, [esp + 0x4c]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0xe0]
cmp eax, ebp
mov eax, dword [esp + 0x54]
jne 0x410547
cmp eax, ebp
jne 0x41055b
jmp 0x410486
push 2
push ebx
mov dword [eax + 0x64], ebp
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc8], 0xffffffff
jmp 0x410800
cmp eax, ebp
jne 0x41055b
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410856
mov ecx, dword [esp + 0xdc]
mov esi, eax
cmp eax, ecx
mov dword [esp + 0x2c], esi
jbe 0x410572
mov dword [esp + 0x2c], ecx
mov esi, ecx
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x64]
push esi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4107b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4105cc
or edi, 0xffffffff
push edi
push ebp
push 0xe9
call fcn.00431d0a
push edi
push ebp
push 0xe6
call fcn.00431d0a
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [esp + 0x28]
push eax
jmp 0x4107f3
mov ecx, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xa
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x41065f
push 1
push 0
push 0
lea edx, [esp + 0x3c]
push 0
push edx
call edi
test eax, eax
je 0x410635
call fcn.004338c1
mov eax, dword [eax + 4]
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x410622
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
call edi
test eax, eax
jne 0x4105f4
mov eax, dword [0x44b258]
cmp dword [eax + 0x64], 1
je 0x4106ed
cmp esi, 0x102
jne 0x410718
mov edx, dword [esp + 0x28]
push 0xa
push edx
call ebp
mov esi, eax
test esi, esi
jne 0x4105e1
push 1
push 0
push 0
lea eax, [esp + 0x3c]
push 0
push eax
call edi
test eax, eax
je 0x4106b3
call fcn.004338c1
mov eax, dword [eax + 4]
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x4106a0
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
call edi
test eax, eax
jne 0x410672
mov eax, dword [0x44b258]
cmp dword [eax + 0x64], 1
jne 0x410774
push 2
push ebx
mov dword [eax + 0x64], 0
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc8], 0xffffffff
jmp 0x410800
push 2
push ebx
mov dword [eax + 0x64], 0
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc8], 0xffffffff
jmp 0x410800
or edi, 0xffffffff
push edi
cmp esi, edi
push 0
push 0xe7
je 0x410734
call fcn.00431d0a
push edi
push 0
jmp 0x4107db
call fcn.00431d0a
push edi
push 0
push 0xe6
call fcn.00431d0a
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0xc8], edi
call fcn.0042ab0d
mov eax, 0xc
jmp 0x41086f
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
cmp edx, eax
je 0x4107ab
or edi, 0xffffffff
push edi
push 0
push 0xea
call fcn.00431d0a
push edi
push 0
jmp 0x4105af
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x410815
lea edx, [esp + 0x14]
push ebp
lea eax, [esp + 0x1c]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp esi, dword [esp + 0x14]
je 0x410810
or edi, 0xffffffff
push edi
push ebp
push 0xea
call fcn.00431d0a
push edi
push ebp
push 0xe6
call fcn.00431d0a
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc8], edi
lea ecx, [esp + 0x10]
call fcn.0042ab0d
mov eax, 0xd
jmp 0x41086f
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xd4]
mov ecx, eax
lea esi, [esp + 0x5c]
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp eax, dword [esp + 0xdc]
jae 0x41084d
mov byte [eax + edx], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xd8]
mov dword [ecx], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc8], 0xffffffff
call fcn.0042ab0d
mov eax, 2
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret