Function at 0x401ca0
Capabilities:
Delete file
Get session user name
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd9c
mov eax, dword [0x407004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xd5c]
mov dword [ebp - 0xd98], ecx
mov ebx, edx
mov dword [ebp - 0xd84], 0
push 0x407400
push eax
mov dword [ebp - 0xd88], ebx
mov dword [ebp - 0xd38], 0x80
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea eax, [ebp - 0xd5c]
push eax
push str._F__T
lea eax, [ebp - 0x18]
push 0x14
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
add esp, 0x18
lea eax, [ebp - 0xd38]
push eax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x4034c0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.creerfichier
call fcn.00403270
add esp, 4
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_____]
lea ecx, [ebp - 0xb0]
call fcn.00402e80
push eax
mov ecx, ebx
call fcn.00402e80
push eax
push str.http:__connecteur.aba_electronique.fr_connecteur.php
push str._s_idMachine_sNomUser_s
lea eax, [ebp - 0xd30]
push 0x400
push eax
call fcn.004010e0
add esp, 0x18
mov dword [ebp - 0xd8c], 0
push 0x407410
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402417
lea eax, [ebp - 0xd8c]
push eax
lea edx, [ebp - 0xd94]
lea ecx, [ebp - 0xd30]
call fcn.00402910
add esp, 4
mov edi, eax
push edi
push str.data_returned:_n_n_s_n_n
call fcn.00401050
mov esi, dword [sym.imp.VCRUNTIME140.dll_strstr]
push edi
push str.Inconnu
call esi
add esp, 0x10
test eax, eax
je 0x401f65
push 0x14
push str.Connecteur_3cx_Wavesoft
push str.Machine_non_enregistr
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x401f4d
push 0x4034c0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.InsertIntoSQL
call fcn.00403270
add esp, 4
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_____]
lea eax, [ebp - 0xd34]
mov dword [ebp - 0xd34], 0x80
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0xd80]
push 0x407400
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea eax, [ebp - 0xd80]
push eax
push str._F__T
lea eax, [ebp - 0x2c]
push 0x14
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
add esp, 0x18
lea ecx, [ebp - 0x2c]
push str.0.20
call fcn.00402e80
push eax
lea ecx, [ebp - 0x130]
call fcn.00402e80
mov ecx, dword [ebx + 0x80]
push eax
call fcn.00402e80
push eax
mov ecx, ebx
call fcn.00402e80
push eax
push str.http:__connecteur.aba_electronique.fr_connecteur.php
push str._s_testmysql.php_idMachine_sNomMachine_sNomUser_sDate_sversion_s
lea eax, [ebp - 0x930]
push 0x400
push eax
call fcn.004010e0
add esp, 0x24
mov dword [ebp - 0xd90], 0
push 0x407410
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x401f4d
lea eax, [ebp - 0xd90]
push eax
lea edx, [ebp - 0xd9c]
lea ecx, [ebp - 0x930]
call fcn.00402910
add esp, 4
mov esi, eax
push str.returned_from_readUrl_n
call fcn.00401050
add esp, 4
push esi
push str.data_returned:_n_n_s_n_n
call fcn.00401050
add esp, 8
mov eax, 0x4056a8
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x401f23
test cl, cl
je 0x401f1f
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x401f23
add esi, 2
add eax, 2
test cl, cl
jne 0x401f03
xor eax, eax
jmp 0x401f28
sbb eax, eax
or eax, 1
test eax, eax
je 0x401f4d
push 0x4034c0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.erreur
call fcn.00403270
add esp, 4
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 esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
push str.2000_01_01
push 0xb
push edi
call esi
add esp, 0xc
jmp 0x40202c
push edi
push 0x405614
call esi
add esp, 8
test eax, eax
je 0x401fa8
push 0x4034c0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Requ
call fcn.00403270
add esp, 4
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 al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004035b5
mov esp, ebp
pop ebp
ret
push edi
push str.Errno
call esi
add esp, 8
test eax, eax
je 0x401ff8
push 0x4034c0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Erreur_de_connexion_a_la_base
call fcn.00403270
add esp, 4
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 ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, edi
call fcn.00403270
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004035b5
mov esp, ebp
pop ebp
ret
push edi
push str.Invalide
call esi
add esp, 8
test eax, eax
je 0x402026
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Format_de_lid_Invalide_:
push 0x4034c0
call fcn.00403270
push ecx
mov edx, ebx
mov ecx, eax
jmp 0x401f85
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
push edi
lea eax, [ebx + 0x88]
push 0x80
push eax
mov dword [ebp - 0xd34], eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00402e80
push eax
lea ecx, [ebp - 0xb0]
call fcn.00402e80
push eax
mov ecx, ebx
call fcn.00402e80
push eax
push str.http:__connecteur.aba_electronique.fr_connecteur.php
push str._s_idMachine_sNomUser_sLastCo_s
lea eax, [ebp - 0xd30]
push 0x400
push eax
call fcn.004010e0
add esp, 0x1c
lea eax, [ebp - 0xd8c]
lea edx, [ebp - 0xd94]
lea ecx, [ebp - 0xd30]
push eax
call fcn.00402910
add esp, 4
mov esi, eax
push esi
push str.data_returned:_n_n_s_n_n
call fcn.00401050
push esi
push 0x4056a8
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 0x10
test eax, eax
jne 0x4020db
push 0x4034c0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Echec_de_la_maj_de_derni
call fcn.00403270
add esp, 4
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_____]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [ebp - 0xd98]
lea eax, [ebp - 0xd84]
push 0x4056d4
push esi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov eax, dword [ebp - 0xd84]
add esp, 0xc
test eax, eax
jne 0x402231
push 0x4034c0
call fcn.00401580
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, eax
call fcn.00403270
add esp, 4
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_____]
cmp byte [0x4075ac], 0
jne 0x402183
push esi
mov byte [0x4075ac], 1
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
mov edx, str.2eme_tentative
push 0x4034c0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00403270
add esp, 4
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 edx, ebx
mov ecx, esi
call fcn.00401ca0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004035b5
mov esp, ebp
pop ebp
ret
push 0x4034c0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4056e8
call fcn.00403270
add esp, 4
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_____]
push 0x4034c0
call fcn.00401580
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, eax
call fcn.00403270
add esp, 4
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_____]
push str.Impossible_douvrir_le_chemin_de_3cxPhoneWindows._n_n
lea eax, [ebp - 0x930]
push 0x400
push eax
call fcn.004010e0
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x930]
add esp, 0xc
push str.Installer_lapplication_3cx_pour_Windows_avant_de_lancer_le_connecteur._nErreur_:
push 0x400
push eax
call esi
add esp, 0xc
call fcn.00401580
push eax
lea eax, [ebp - 0x930]
push 0x400
push eax
call esi
add esp, 0xc
lea edx, [ebp - 0x930]
push 0x1f40
sub esp, 0xc
call fcn.004015e0
add esp, 0x10
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push eax
push dword [ebx + 0x84]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
call ebx
push dword [ebp - 0xd84]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
push 0x20
call edi
mov eax, dword [ebp - 0xd88]
push dword [eax + 0x84]
lea eax, [ebp - 0x530]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea eax, [ebp - 0x530]
add esp, 0x1c
push 0x405794
push 0x400
push eax
call esi
mov eax, dword [ebp - 0xd88]
add esp, 0xc
push dword [ebp - 0xd84]
push dword [eax + 0x80]
call ebx
push dword [ebp - 0xd84]
push 0x20
call edi
mov eax, dword [ebp - 0xd88]
push dword [eax + 0x80]
lea eax, [ebp - 0x530]
push 0x400
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x530]
push 0x405794
push 0x400
push eax
call esi
add esp, 0xc
push dword [ebp - 0xd84]
push dword [ebp - 0xd88]
call ebx
push dword [ebp - 0xd84]
push 0x20
call edi
push dword [ebp - 0xd88]
lea eax, [ebp - 0x530]
push 0x400
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x530]
push 0x405794
push 0x400
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x18]
push dword [ebp - 0xd84]
push eax
call ebx
push dword [ebp - 0xd84]
push 0x20
call edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x530]
push 0x400
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x530]
push 0x405794
push 0x400
push eax
call esi
add esp, 0xc
push dword [ebp - 0xd84]
push dword [ebp - 0xd34]
call ebx
push dword [ebp - 0xd84]
push 0xa
call edi
push dword [ebp - 0xd34]
lea eax, [ebp - 0x530]
push 0x400
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x530]
push 0x405798
push 0x400
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x530]
push dword [ebp - 0xd84]
call fcn.00402fc0
push eax
call ebx
push dword [ebp - 0xd84]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 0xc
push dword [ebp - 0xd84]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
je 0x402402
push 0x4034c0
call fcn.00401580
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, eax
call fcn.00403270
add esp, 4
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_____]
push dword [ebp - 0xd84]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fcloseall]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004035b5
mov esp, ebp
pop ebp
ret