Function at 0x41db80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a168
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4b1570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x50]
call fcn.004028e0
mov dword [ebp - 4], 0
call fcn.0041e370
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x497298], eax
cmp dword [0x497298], 0xffffffff
jne 0x41dccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 2
jne 0x41dc47
push 0x15e
lea ecx, [ebp - 0x54]
push ecx
call fcn.00408350
add esp, 8
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.004023c0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00401fc0
jmp 0x41dc9f
push 0x9e
lea edx, [ebp - 0x58]
push edx
call fcn.00408350
add esp, 8
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.004023c0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00401fc0
push 0
mov eax, dword [ebp - 0x50]
push eax
call fcn.00414a60
add esp, 8
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401fc0
mov eax, dword [ebp - 0x5c]
jmp 0x41dff4
mov byte [ebp - 0x25], 0
jmp 0x41dcda
mov cl, byte [ebp - 0x25]
add cl, 1
mov byte [ebp - 0x25], cl
movzx edx, byte [ebp - 0x25]
cmp edx, 5
jge 0x41dd0e
push 0x2000
push 0x2000
mov eax, dword [0x497298]
push eax
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41dd04
jmp 0x41dd0e
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41dcd1
push 0xf
mov ecx, dword [0x497298]
push ecx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
lea edx, [ebp - 0x24]
push edx
mov eax, dword [0x497298]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x14], 0x1388
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [0x497298]
push edx
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov dword [ebp - 0x48], 0x1c
mov byte [ebp - 0x25], 0
jmp 0x41dd76
mov al, byte [ebp - 0x25]
add al, 1
mov byte [ebp - 0x25], al
movzx ecx, byte [ebp - 0x25]
cmp ecx, 5
jge 0x41dda4
lea edx, [ebp - 0x48]
push edx
mov eax, dword [0x497298]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41dd9a
jmp 0x41dda4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41dd6e
cmp dword [ebp - 0x2c], 0
jne 0x41de0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
push str.GetCommState:__CE__u_
lea edx, [ebp - 0x50]
push edx
call fcn.004023c0
add esp, 0xc
push 0
push 0
mov eax, dword [ebp - 0x50]
push eax
call fcn.00408a00
add esp, 0xc
mov ecx, dword [0x497298]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x497298], 0xffffffff
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401fc0
mov eax, dword [ebp - 0x60]
jmp 0x41dff4
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x44], edx
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x36], al
mov cl, byte [ebp + 0x14]
mov byte [ebp - 0x35], cl
mov dl, byte [ebp + 0x18]
mov byte [ebp - 0x34], dl
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
and eax, 1
shl eax, 3
mov ecx, dword [ebp - 0x40]
and ecx, 0xfffffff7
or ecx, eax
mov dword [ebp - 0x40], ecx
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x41de54
mov eax, dword [ebp - 0x40]
and eax, 0xffffffcf
or eax, 0x20
mov dword [ebp - 0x40], eax
jmp 0x41de60
mov ecx, dword [ebp - 0x40]
and ecx, 0xffffffcf
or ecx, 0x10
mov dword [ebp - 0x40], ecx
movzx edx, byte [ebp - 0xd]
and edx, 1
shl edx, 2
mov eax, dword [ebp - 0x40]
and eax, 0xfffffffb
or eax, edx
mov dword [ebp - 0x40], eax
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x41de91
mov edx, dword [ebp - 0x40]
and edx, 0xffffcfff
or edx, 0x2000
mov dword [ebp - 0x40], edx
jmp 0x41dea1
mov eax, dword [ebp - 0x40]
and eax, 0xffffcfff
or eax, 0x1000
mov dword [ebp - 0x40], eax
mov byte [ebp - 0xd], 0
movzx ecx, byte [ebp - 0xd]
and ecx, 1
shl ecx, 8
mov edx, dword [ebp - 0x40]
and edx, 0xfffffeff
or edx, ecx
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
shr eax, 8
and eax, 1
and eax, 1
shl eax, 9
mov ecx, dword [ebp - 0x40]
and ecx, 0xfffffdff
or ecx, eax
mov dword [ebp - 0x40], ecx
mov word [ebp - 0x3a], 0x64
mov word [ebp - 0x38], 0x64
mov byte [ebp - 0x33], 0x11
mov byte [ebp - 0x32], 0x13
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
movzx eax, byte [ebp - 0x35]
test eax, eax
jne 0x41df0a
mov ecx, dword [ebp - 0x40]
and ecx, 0xfffffffd
mov dword [ebp - 0x40], ecx
jmp 0x41df13
mov edx, dword [ebp - 0x40]
or edx, 2
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x48], 0x1c
mov byte [ebp - 0x25], 0
jmp 0x41df28
mov al, byte [ebp - 0x25]
add al, 1
mov byte [ebp - 0x25], al
movzx ecx, byte [ebp - 0x25]
cmp ecx, 5
jge 0x41df56
lea edx, [ebp - 0x48]
push edx
mov eax, dword [0x497298]
push eax
call dword [sym.imp.KERNEL32.dll_SetCommState]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41df4c
jmp 0x41df56
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41df20
cmp dword [ebp - 0x2c], 0
jne 0x41dfbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
push str.SetCommState:__CE__u_
lea edx, [ebp - 0x50]
push edx
call fcn.004023c0
add esp, 0xc
push 0
push 0
mov eax, dword [ebp - 0x50]
push eax
call fcn.00408a00
add esp, 0xc
mov ecx, dword [0x497298]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x497298], 0xffffffff
mov dword [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401fc0
mov eax, dword [ebp - 0x64]
jmp 0x41dff4
lea edx, [ebp - 0x48]
push edx
mov eax, dword [0x497298]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
push 0xf
mov ecx, dword [0x497298]
push ecx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov dword [ebp - 0x68], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00401fc0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret