Function at 0x445eb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47be25
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4b3af4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x88], edi
mov edx, dword [0x4b4f84]
mov eax, 0x2aaaaaab
sub edx, dword [0x4b4f80]
mov esi, dword [edi + 0x108]
imul edx
lea eax, [edi + 0x108]
mov dword [ebp - 0x74], 0xffffffff
sar edx, 1
mov ecx, edx
mov dword [ebp - 0x8c], eax
shr ecx, 0x1f
add ecx, edx
mov edx, dword [eax + 4]
sub edx, esi
sar edx, 2
cmp ecx, edx
jae 0x445f31
lea eax, [esi + ecx*4]
mov dword [edi + 0x10c], eax
jmp 0x445f6a
jbe 0x445f6a
mov eax, dword [eax + 8]
sub eax, esi
sar eax, 2
cmp ecx, eax
lea eax, [ebp - 0x74]
jbe 0x445f51
push eax
push ecx
lea ecx, [edi + 0x108]
call fcn.0043fd50
jmp 0x445f6a
lea esi, [edi + 0x108]
sub ecx, edx
push esi
push eax
push ecx
push dword [esi + 4]
call fcn.0043fe80
add esp, 0x10
mov dword [esi + 4], eax
mov ecx, dword [edi + 0x12c]
lea esi, [edi + 0x11c]
mov eax, Ordinal_1
sub eax, ecx
cmp eax, 0x23
jb 0x4466f1
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x445f90
mov eax, dword [esi]
push ecx
push eax
push 0x23
push str.Connecting_to_ProgreSQL_database:__
push esi
push dword [ebp - 0x78]
lea ecx, [ebp - 0x28]
call fcn.004145c0
push 2
push 0x48ae98
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0041c440
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov byte [ebp - 4], 1
call fcn.00413ba0
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x446047
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44603d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446086
push ecx
push edx
call fcn.0047607b
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x446096
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44608c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44608c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0047607b
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x44609e
mov esi, dword [esi]
push esi
call sub.LIBPQ.dll_Ordinal_1
add esp, 4
mov dword [edi + 0x104], eax
test eax, eax
je 0x4466bb
push eax
call sub.LIBPQ.dll_Ordinal_14
add esp, 4
test eax, eax
jne 0x4466bb
push str.SELECT_key_id__key_str_FROM_ais_keys
push dword [edi + 0x104]
mov dword [edi + 0xfc], eax
call sub.LIBPQ.dll_Ordinal_21
push eax
mov dword [ebp - 0x7c], eax
call sub.LIBPQ.dll_Ordinal_33
add esp, 0xc
cmp eax, 2
jne 0x4466f6
push dword [ebp - 0x7c]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x84], esi
call sub.LIBPQ.dll_Ordinal_34
add esp, 4
test eax, eax
jle 0x44628c
mov edi, dword [ebp - 0x7c]
push 0
push esi
push edi
call sub.LIBPQ.dll_Ordinal_45
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
push 1
push esi
push edi
mov dword [ebp - 0x78], eax
call sub.LIBPQ.dll_Ordinal_45
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
add esp, 0x1c
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446150
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004136d0
mov eax, dword [ebp - 0x8c]
xor esi, esi
mov dword [ebp - 4], 6
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [ebp - 0x2c], ecx
sar eax, 2
mov dword [ebp - 0x90], eax
test eax, eax
je 0x4462c2
mov ecx, dword [ebp - 0x28]
xor edi, edi
mov dword [ebp - 0x80], ecx
nop word [eax + eax]
mov eax, dword [0x4b4f80]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae edx, ecx
mov eax, dword [eax + edi]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4461bc
mov ecx, dword [eax]
push dword [ebp - 0x18]
push edx
push dword [eax + 0x10]
push ecx
call fcn.00423c10
add esp, 0x10
test al, al
jne 0x4461e5
inc esi
add edi, 0xc
cmp esi, dword [ebp - 0x90]
jae 0x4462c2
mov ecx, dword [ebp - 0x80]
jmp 0x4461a0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x78]
inc dword [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44622e
mov edx, dword [ebp - 0x80]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x446224
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446086
push ecx
push edx
call fcn.0047607b
add esp, 8
mov esi, dword [ebp - 0x84]
mov edi, dword [ebp - 0x7c]
inc esi
push edi
mov dword [ebp - 0x84], esi
call sub.LIBPQ.dll_Ordinal_34
add esp, 4
cmp esi, eax
jl 0x446114
mov eax, dword [ebp - 0x74]
mov edi, dword [ebp - 0x88]
test eax, eax
jle 0x44628c
cmp byte [edi + 0x114], 0
jne 0x44628c
push 0x4140e0
push str.DBMS:_no_messages_logged_in_combination_with_property_logging._MSGS_ON_auto_activated.
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.00413270
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [edi + 0x114], 1
cmp byte [edi + 0x13d], 0
jne 0x4466a0
push 0x10
mov word [edi + 0x13c], 0x100
call fcn.0047604b
add esp, 4
test eax, eax
je 0x4462f3
mov dword [eax], edi
mov dword [eax + 8], 0x445db0
mov dword [eax + 0xc], 0
jmp 0x4462f5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push str.DBMS:_The_requested_key__
push eax
call fcn.00413670
push str.__in_ais_keys_is_not_defined.
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
call fcn.00413590
add esp, 0x18
mov byte [ebp - 4], 8
jmp 0x44672a
xor eax, eax
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 9
push ecx
push 0
push eax
push 0x423760
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x446741
cmp dword [edi + 0x138], 0
mov dword [ebp - 4], 0xffffffff
je 0x44633b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x138], eax
mov dword [edi + 0x134], ecx
movzx eax, byte [edi + 0xf4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00446830
mov esi, eax
push str.DBMS:_start_thread__filter:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 0xa
call fcn.00413270
add esp, 0x10
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x446381
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413ba0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004163f0
cmp byte [edi + 0xf4], 0
je 0x4463f7
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0xe8]
call fcn.004602b0
mov esi, eax
push str.__Allowed:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 0xb
call fcn.00413270
add esp, 8
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x4463db
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413ba0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004163f0
movzx eax, byte [edi + 0x11b]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00446830
mov esi, eax
push str.__V
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 0xc
call fcn.00413270
add esp, 0x10
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x44642e
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413ba0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004163f0
movzx eax, byte [edi + 0x116]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00446830
mov esi, eax
push str.__VP
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 0xd
call fcn.00413270
add esp, 0x10
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x446481
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413ba0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004163f0
movzx eax, byte [edi + 0x114]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00446830
mov esi, eax
push str.__MSGS
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 0xe
call fcn.00413270
add esp, 0x10
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x4464d4
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413ba0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004163f0
movzx eax, byte [edi + 0x117]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00446830
mov esi, eax
push str.__VS
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 0xf
call fcn.00413270
add esp, 0x10
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x446527
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413ba0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004163f0
movzx eax, byte [edi + 0x118]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00446830
mov esi, eax
push str.__BS
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 0x10
call fcn.00413270
add esp, 0x10
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x44657a
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413ba0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004163f0
movzx eax, byte [edi + 0x11a]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00446830
mov esi, eax
push str.__SAR
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 0x11
call fcn.00413270
add esp, 0x10
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x4465cd
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413ba0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004163f0
movzx eax, byte [edi + 0x119]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00446830
mov esi, eax
push str.__ATON
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 0x12
call fcn.00413270
add esp, 0x10
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x446620
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413ba0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004163f0
movzx eax, byte [edi + 0x115]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00446830
mov esi, eax
push str.__NMEA
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov dword [ebp - 4], 0x13
call fcn.00413270
add esp, 0x10
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x446673
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
push eax
call fcn.00413ba0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004163f0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push 0x4140e0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004762da
mov esp, ebp
pop ebp
ret
push dword [edi + 0x104]
call sub.LIBPQ.dll_Ordinal_15
add esp, 4
lea ecx, [ebp - 0x70]
push eax
call fcn.004143f0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push str.DBMS:_cannot_open_database_:
push eax
call fcn.00413600
add esp, 0xc
mov byte [ebp - 4], 3
jmp 0x44672a
call fcn.0041c350
push dword [edi + 0x104]
call sub.LIBPQ.dll_Ordinal_15
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.004143f0
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 4
push str.DBMS:_error_fetching_ais_keys_table:
push eax
call fcn.00413600
add esp, 0xc
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x34]
call fcn.004160a0
push 0x493c0c
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 6
mov dword [ebp - 0x2c], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3