Function at 0x409ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x440ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [0x453820]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov bl, 4
mov byte [esp + 0x60], bl
lea edi, [esi + 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x644]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
mov dword [esp + 0x2c], eax
call ebp
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x409fef
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 0x638]
push 0
call fcn.004233f0
test eax, eax
je 0x409c4c
add eax, 8
lea ecx, [esp + 0x14]
push eax
call fcn.00427aac
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esi + 0x638]
call fcn.0042337c
lea ecx, [esp + 0x2c]
call fcn.00427973
push edi
call ebp
lea edx, [esp + 0x30]
push 2
push edx
lea ecx, [esp + 0x1c]
call fcn.00421539
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 5
call fcn.00427aac
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], bl
call fcn.00427973
mov eax, dword [esp + 0x18]
push eax
call fcn.00413a13
mov ecx, dword [esp + 0x18]
mov ebp, eax
add esp, 4
lea edx, [esp + 0x34]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
add eax, 0xfffffffe
push eax
push edx
call fcn.004214bd
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 6
call fcn.00427aac
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], bl
call fcn.00427973
lea eax, [esp + 0x38]
push 0xe
push eax
lea ecx, [esp + 0x1c]
call fcn.00421539
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 7
call fcn.00427aac
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], bl
call fcn.00427973
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x3c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
add eax, 0xfffffff2
push eax
push edx
call fcn.004214bd
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 8
call fcn.00427aac
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], bl
call fcn.00427973
lea eax, [esp + 0x40]
push 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.00421539
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 9
call fcn.00427aac
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], bl
call fcn.00427973
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
add eax, 0xfffffff4
lea edx, [esp + 0x44]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004214bd
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 0xa
call fcn.00427aac
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], bl
call fcn.00427973
lea edi, [esi + 0x94]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xd0]
push ecx
test eax, eax
mov ecx, esp
je 0x409db1
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], esp
push eax
call fcn.004276e8
lea ecx, [esi + 0x3dc]
jmp 0x409dcf
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], esp
push edx
call fcn.004276e8
lea eax, [ebp*8]
sub eax, ebp
lea ecx, [esi + eax*8 + 0x1ac]
call fcn.00405db0
push edi
mov byte [esp + 0x17], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [esp + 0x13]
test al, al
je 0x409be5
lea ecx, [ebp + ebp*4]
mov al, byte [esi + ecx*4 + 0xf7]
test al, al
je 0x409e8c
lea edx, [esp + 0x14]
push edx
call fcn.00402b00
add esp, 4
test eax, eax
jne 0x409e8c
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.004027b0
mov edx, dword [eax]
inc ebp
push edx
push ebp
lea eax, [esp + 0x28]
push str.COM_2d_Error:_NMEA_Checksum:__s
push eax
mov byte [esp + 0x78], 0xb
call fcn.00421937
add esp, 0x18
lea ecx, [esp + 0x48]
mov byte [esp + 0x60], bl
call fcn.00427973
call fcn.00427f2b
test eax, eax
je 0x409be5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
test eax, eax
je 0x409be5
call fcn.00427f2b
test eax, eax
je 0x409e75
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x409e77
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [eax + 0xbc]
call fcn.004058b0
jmp 0x409be5
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x409eac
lea edx, [ebp + 1]
lea eax, [esp + 0x1c]
push edx
push str.Rxd_2d:
push eax
call fcn.00421937
add esp, 0xc
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x409ec4
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.00427d8b
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x409edc
lea edx, [esp + 0x20]
lea ecx, [esp + 0x1c]
push edx
call fcn.00427d8b
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x409eee
mov al, byte [esi + 0x410]
jmp 0x409efe
lea eax, [ebp*8]
sub eax, ebp
mov al, byte [esi + eax*8 + 0x1e0]
test al, al
je 0x409f30
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.00402890
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 0xc
call fcn.00427aac
lea ecx, [esp + 0x4c]
mov byte [esp + 0x60], bl
call fcn.00427973
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.00427ba2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 0xd
call fcn.00427aac
lea ecx, [esp + 0x50]
mov byte [esp + 0x60], bl
call fcn.00427973
lea ecx, [esp + 0x14]
call fcn.0040a350
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
push ecx
call fcn.004027b0
add esp, 8
mov ecx, esi
call fcn.0040a2b0
mov al, byte [esi + 0xc4]
test al, al
jne 0x409be5
lea edi, [esi + 0xac]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebp, [esi + 0x61c]
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.00423348
mov eax, dword [esi + 0x628]
mov ecx, dword [esi + 0x50]
cmp eax, ecx
jl 0x409fd0
lea eax, [esp + 0x54]
mov ecx, ebp
push eax
call fcn.0042337c
lea ecx, [esp + 0x54]
call fcn.00427973
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x654]
test ecx, ecx
je 0x409be5
call fcn.0040b000
jmp 0x409be5
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 3
call fcn.00427973
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 2
call fcn.00427973
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
call fcn.00427973
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 0
call fcn.00427973
lea ecx, [esp + 0x1c]
mov dword [esp + 0x60], 0xffffffff
call fcn.00427973
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret