Function at 0x10002040
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Delete file
Initialize winsock library
Move file
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026f4b
mov eax, dword fs:[0]
push eax
sub esp, 0x97c
mov eax, dword [0x10034080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0xb8
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x94c], 0
push 0
push eax
mov dword [ebp - 0x948], 0xffffffff
call fcn.1000c100
xorps xmm0, xmm0
mov dword [ebp - 0x64c], 0x1003015c
add esp, 0xc
movlpd qword [ebp - 0x5c4], xmm0
movups xmmword [ebp - 0x5d4], xmm0
mov dword [ebp - 0x5b4], 0
movlpd qword [ebp - 0x5bc], xmm0
mov dword [ebp - 0x5b0], 0
mov dword [ebp - 0x5ac], 0
mov dword [ebp - 0x5a4], 0
mov dword [ebp - 0x5a0], 0
mov byte [ebp - 0x59c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x63c]
push 0
push eax
lea ecx, [ebp - 0x5dc]
mov dword [ebp - 0x94c], 1
mov dword [ebp - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x5e0], 0x58
movlpd qword [ebp - 0x644], xmm0
call fcn.10007000
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x64c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x64c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x650], eax
lea ecx, [ebp - 0x63c]
call fcn.10006490
push ecx
push 1
push str.INIT_vclient.txt
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 3
call fcn.100062c0
test eax, eax
jne 0x100021b6
mov eax, dword [ebp - 0x64c]
lea ecx, [ebp - 0x64c]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001ea0
mov dword [ebp - 4], 4
xorps xmm0, xmm0
movups xmmword [ebp - 0x54c], xmm0
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x538], 0xf
mov byte [ebp - 0x54c], 0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x5f0], 0
jne 0x10002208
push 0x10
push str.Error
push str.No_se_pudo_verificar_la_version_de_AOF_vclient.txt
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10002a77
lea edx, [ebp - 0x54c]
lea ecx, [ebp - 0x64c]
call fcn.100074e0
lea ecx, [ebp - 0x63c]
call fcn.100061e0
test eax, eax
jne 0x10002251
mov eax, dword [ebp - 0x64c]
lea ecx, [ebp - 0x64c]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001ea0
lea eax, [ebp - 0x7dc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10002280
push 0x10
push str.Error
push str.Fallo_la_inicializacion_de_Winsock.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10002a77
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [ebp - 0x948], edi
cmp edi, 0xffffffff
jne 0x100023c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x57c]
call fcn.10007350
lea eax, [ebp - 0x57c]
mov byte [ebp - 4], 7
push eax
mov edx, str.No_se_pudo_crear_el_socket._Error:
lea ecx, [ebp - 0x564]
call fcn.10007580
mov ecx, dword [ebp - 0x568]
add esp, 4
cmp ecx, 0xf
jbe 0x10002308
mov edx, dword [ebp - 0x57c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100022fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034fa
push ecx
push edx
call fcn.1000a6bf
add esp, 8
cmp dword [ebp - 0x550], 0xf
lea eax, [ebp - 0x564]
push 0x10
cmova eax, dword [ebp - 0x564]
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0x550]
cmp ecx, 0xf
jbe 0x1000236c
mov edx, dword [ebp - 0x564]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002362
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034ff
push ecx
push edx
call fcn.1000a6bf
add esp, 8
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x550], 0xf
mov byte [ebp - 0x564], 0
mov ecx, dword [ebp - 0x538]
cmp ecx, 0xf
jbe 0x10002ab1
mov edx, dword [ebp - 0x54c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002aa7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034ff
jmp 0x10002aa7
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x580]
push 4
push eax
push 0x1006
push 0xffff
push edi
mov dword [ebp - 0x580], 0x1388
call esi
push 4
lea eax, [ebp - 0x580]
push eax
push 0x1005
push 0xffff
push edi
call esi
mov eax, 2
push 0x3039
mov word [ebp - 0x594], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x592], ax
lea eax, [ebp - 0x590]
push eax
push str.160.20.247.197
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x10
test eax, eax
jg 0x1000245c
push str.Error
push str.Direccion_IP_invalida_o_no_soportada.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x10002a77
lea eax, [ebp - 0x594]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000254c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x57c]
call fcn.10007350
lea eax, [ebp - 0x57c]
mov byte [ebp - 4], 8
push eax
mov edx, str.No_se_pudo_conectar_al_servidor._Error:
lea ecx, [ebp - 0x564]
call fcn.10007580
mov ecx, dword [ebp - 0x568]
add esp, 4
cmp ecx, 0xf
jbe 0x100024de
mov edx, dword [ebp - 0x57c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100024d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003504
push ecx
push edx
call fcn.1000a6bf
add esp, 8
cmp dword [ebp - 0x550], 0xf
lea eax, [ebp - 0x564]
push 0x10
cmova eax, dword [ebp - 0x564]
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0x550]
cmp ecx, 0xf
jbe 0x1000236c
mov edx, dword [ebp - 0x564]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002362
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034ff
jmp 0x10002362
cmp dword [ebp - 0x538], 0xf
lea eax, [ebp - 0x54c]
push 0
push dword [ebp - 0x53c]
cmova eax, dword [ebp - 0x54c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x100025e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x57c]
call fcn.10007350
lea eax, [ebp - 0x57c]
mov byte [ebp - 4], 9
push eax
mov edx, str.Fallo_el_env
lea ecx, [ebp - 0x564]
call fcn.10007580
mov ecx, dword [ebp - 0x568]
add esp, 4
cmp ecx, 0xf
jbe 0x100024de
mov edx, dword [ebp - 0x57c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100024d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100024d4
jmp 0x100034ff
push 0
push 8
lea eax, [ebp - 0x20]
mov byte [ebp - 0x18], 0
push eax
xorps xmm0, xmm0
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1000262a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x57c]
call fcn.10007350
lea eax, [ebp - 0x57c]
mov byte [ebp - 4], 0xa
push eax
mov edx, str.Fallo_la_recepcion_de_respuesta_del_servidor._Error:
jmp 0x10002598
cmp eax, 9
jae 0x10003509
xorps xmm0, xmm0
mov byte [ebp + eax - 0x20], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x95c], 0
movups xmmword [ebp - 0x96c], xmm0
mov dword [ebp - 0x958], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002660
sub ecx, edx
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x96c]
call fcn.10007c30
cmp dword [ebp - 0x958], 0xf
lea ecx, [ebp - 0x96c]
mov esi, dword [ebp - 0x95c]
cmova ecx, dword [ebp - 0x96c]
cmp esi, 6
jne 0x100026f9
mov edx, str.UPDATE
sub esi, 4
jb 0x100026b3
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100026b8
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100026a2
cmp esi, 0xfffffffc
je 0x100026ec
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100026e5
cmp esi, 0xfffffffd
je 0x100026ec
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100026e5
cmp esi, 0xfffffffe
je 0x100026ec
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100026e5
cmp esi, 0xffffffff
je 0x100026ec
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100026ec
sbb eax, eax
or eax, 1
jmp 0x100026ee
xor eax, eax
mov byte [ebp - 0x941], 1
test eax, eax
je 0x10002700
mov byte [ebp - 0x941], 0
mov eax, dword [ebp - 0x958]
cmp eax, 0xf
jbe 0x10002748
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x96c]
mov edx, eax
cmp ecx, 0x1000
jb 0x1000273e
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x94c], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100034ff
mov eax, dword [ebp - 0x94c]
push ecx
push eax
call fcn.1000a6bf
add esp, 8
cmp byte [ebp - 0x941], 0
je 0x10003340
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call esi
test eax, eax
jne 0x100027c4
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 1
call fcn.1000f232
push eax
push 0x1002fbd4
lea eax, [ebp - 0x7e0]
push str.CONOUT_
push eax
call fcn.1001283c
push 2
call fcn.1000f232
push eax
push 0x1002fbd4
lea eax, [ebp - 0x7e0]
push str.CONOUT_
push eax
call fcn.1001283c
push 0
call fcn.1000f232
push eax
push 0x1002fbe0
lea eax, [ebp - 0x7e0]
push str.CONIN_
push eax
call fcn.1001283c
add esp, 0x3c
push 1
push 0x10001fe0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call esi
mov esi, eax
mov dword [ebp - 0x954], esi
test esi, esi
je 0x10002801
push 0
push esi
call dword [sym.imp.USER32.dll_GetSystemMenu]
test eax, eax
je 0x10002801
push 0
push 0xf060
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
push esi
call dword [sym.imp.USER32.dll_DrawMenuBar]
xorps xmm0, xmm0
xor esi, esi
movups xmmword [ebp - 0x30], xmm0
nop word [eax + eax]
push 0
mov eax, 2
sub eax, esi
push eax
lea eax, [ebp - 0x30]
add eax, esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100032b1
add esi, eax
cmp esi, 2
jl 0x10002810
mov byte [ebp - 0x2e], 0
xor esi, esi
nop dword [eax]
push 0
mov eax, 4
sub eax, esi
push eax
lea eax, [ebp - 0x584]
add eax, esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10003290
add esi, eax
cmp esi, 4
jl 0x10002840
push dword [ebp - 0x584]
call dword [sym.imp.WS2_32.dll_ntohl]
mov esi, eax
mov edx, str.Nueva_version_disponible._Actualizando_AOForever...
mov ecx, 0x10035120
mov dword [ebp - 0x950], esi
call fcn.10007680
push eax
call fcn.10007930
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x7e0], ecx
nop dword [eax]
cmp ecx, 3
jge 0x10003266
push 0x11
xorps xmm0, xmm0
mov dword [ebp - 0x56c], 0
push str.AOForever_new.exe
lea ecx, [ebp - 0x57c]
mov dword [ebp - 0x568], 0
movups xmmword [ebp - 0x57c], xmm0
call fcn.10007c30
push 0xb0
lea eax, [ebp - 0x890]
mov byte [ebp - 4], 0xb
push 0
push eax
call fcn.1000c100
cmp dword [ebp - 0x568], 0xf
lea eax, [ebp - 0x57c]
lea ecx, [ebp - 0x890]
cmova eax, dword [ebp - 0x57c]
add esp, 4
push 0x20
push eax
call fcn.100036b0
mov eax, dword [ebp - 0x890]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x890]
mov edx, dword [eax + 4]
lea eax, [edx - 0x68]
mov dword [ebp + edx - 0x894], eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x890]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x884], 6
je 0x10002ad1
mov edx, str.No_se_pudo_crear_el_archivo_
mov ecx, 0x10035120
call fcn.10007680
cmp dword [ebp - 0x568], 0xf
lea edx, [ebp - 0x57c]
push dword [ebp - 0x56c]
cmova edx, dword [ebp - 0x57c]
mov ecx, eax
call fcn.10009230
add esp, 4
mov edx, 0x1002fe14
mov ecx, eax
call fcn.10007680
push eax
call fcn.10007930
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x890]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x890]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x894], eax
lea ecx, [ebp - 0x88c]
call fcn.100049e0
mov eax, dword [ebp - 0x890]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x890]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x894], eax
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 0xd
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10009d47
mov ecx, dword [ebp - 0x568]
add esp, 4
cmp ecx, 0xf
jbe 0x10002a5c
mov edx, dword [ebp - 0x57c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002a52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034ff
push ecx
push edx
call fcn.1000a6bf
add esp, 8
mov dword [ebp - 0x56c], 0
mov dword [ebp - 0x568], 0xf
mov byte [ebp - 0x57c], 0
mov ecx, dword [ebp - 0x538]
cmp ecx, 0xf
jbe 0x10002ab1
mov edx, dword [ebp - 0x54c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002aa7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034ff
push ecx
push edx
call fcn.1000a6bf
add esp, 8
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x538], 0xf
mov byte [ebp - 0x54c], 0
jmp 0x100034d3
xor edi, edi
xor al, al
mov dword [ebp - 0x94c], edi
mov byte [ebp - 0x941], al
jmp 0x10002ae9
mov esi, dword [ebp - 0x950]
cmp edi, esi
jae 0x10002b50
mov eax, esi
mov ecx, 0x400
sub eax, edi
cmp eax, ecx
push 0
cmovb ecx, eax
lea eax, [ebp - 0x534]
push ecx
push eax
push dword [ebp - 0x948]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jg 0x10002d89
mov edx, str.Fallo_la_descarga_de_la_actualizacion._Error:
mov ecx, 0x10035120
call fcn.10007680
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call fcn.10003b50
push eax
call fcn.10007930
mov esi, dword [ebp - 0x950]
add esp, 4
mov byte [ebp - 0x941], 1
lea ecx, [ebp - 0x88c]
call fcn.100061e0
test eax, eax
jne 0x10002b88
mov eax, dword [ebp - 0x890]
lea ecx, [ebp - 0x890]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001ea0
cmp byte [ebp - 0x941], 0
jne 0x10003138
cmp edi, esi
jb 0x10003138
mov eax, dword [ebp - 0x890]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x890]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x894], eax
lea ecx, [ebp - 0x88c]
call fcn.100049e0
mov eax, dword [ebp - 0x890]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x890]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x894], eax
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 0xf
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10009d47
mov byte [ebp - 4], 6
add esp, 4
mov ecx, dword [ebp - 0x568]
cmp ecx, 0xf
jbe 0x10002c51
mov edx, dword [ebp - 0x57c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002c47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034ff
push ecx
push edx
call fcn.1000a6bf
add esp, 8
mov edx, str.AOForever_actualizado_exitosamente.
mov ecx, 0x10035120
call fcn.10007680
push eax
call fcn.10007930
add esp, 4
lea eax, [ebp - 0x940]
push 0xb0
push 0
push eax
call fcn.1000c100
add esp, 4
lea ecx, [ebp - 0x940]
push 0x10
push str.INIT_vclient.txt
call fcn.100036b0
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x940]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x934], 6
je 0x10002df7
mov edx, str.No_se_pudo_actualizar_INIT_vclient.txt_con_la_nueva_version
mov ecx, 0x10035120
call fcn.10007680
push eax
call fcn.10007930
add esp, 4
push dword [ebp - 0x948]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x940]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x940]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x944], eax
lea ecx, [ebp - 0x93c]
call fcn.100049e0
mov eax, dword [ebp - 0x940]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x940]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x944], eax
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x8d8]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.10009d47
add esp, 4
mov ecx, dword [ebp - 0x538]
cmp ecx, 0xf
jbe 0x10003320
mov edx, dword [ebp - 0x54c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003316
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034ff
jmp 0x10003316
mov eax, esi
lea ecx, [ebp - 0x890]
cdq
push edx
push eax
lea eax, [ebp - 0x534]
push eax
call fcn.10003820
add edi, esi
mov ecx, dword [ebp - 0x94c]
imul eax, edi, 0x64
xor edx, edx
add ecx, 0xa
div dword [ebp - 0x950]
mov esi, eax
cmp esi, ecx
jl 0x10002ae3
mov edx, str.Actualizacion_de_AOForever_en_proceso:
mov dword [ebp - 0x94c], esi
mov ecx, 0x10035120
call fcn.10007680
push esi
mov ecx, eax
call fcn.10003b50
mov edx, str.__completado.
mov ecx, eax
call fcn.10007680
push eax
call fcn.10007930
add esp, 4
jmp 0x10002ae3
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x940]
call fcn.10007680
lea ecx, [ebp - 0x93c]
call fcn.100061e0
test eax, eax
jne 0x10002e3d
mov eax, dword [ebp - 0x940]
lea ecx, [ebp - 0x940]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001ea0
push dword [ebp - 0x948]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov esi, dword [ebp - 0x954]
test esi, esi
je 0x10002e90
push 0
push esi
call dword [sym.imp.USER32.dll_GetSystemMenu]
test eax, eax
je 0x10002e90
push 0
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
call dword [sym.imp.USER32.dll_DrawMenuBar]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0x40
push str.Actualizaci
push str.El_cliente_de_AOForever_ha_sido_actualizado_exitosamente__Ahora_el_juego_se_cerrar
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x104
lea eax, [ebp - 0x134]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x11
xorps xmm0, xmm0
mov dword [ebp - 0x554], 0
push str.AOForever_old.exe
lea ecx, [ebp - 0x564]
mov dword [ebp - 0x550], 0
movups xmmword [ebp - 0x564], xmm0
call fcn.10007c30
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x564]
cmp dword [ebp - 0x550], 0xf
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
cmova eax, dword [ebp - 0x564]
push 3
push eax
lea eax, [ebp - 0x134]
push eax
call esi
test eax, eax
jne 0x10003003
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.No_se_pudo_renombrar_el_ejecutable_actual._Error:
mov ecx, 0x10035120
mov esi, eax
call fcn.10007680
push esi
mov ecx, eax
call fcn.10003990
push eax
call fcn.10007930
mov byte [ebp - 4], 0x11
add esp, 4
mov ecx, dword [ebp - 0x550]
cmp ecx, 0xf
jbe 0x10002f86
mov edx, dword [ebp - 0x564]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002f7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034ff
push ecx
push edx
call fcn.1000a6bf
add esp, 8
mov eax, dword [ebp - 0x940]
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x550], 0xf
mov byte [ebp - 0x564], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x940]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x944], eax
lea ecx, [ebp - 0x93c]
call fcn.100049e0
mov eax, dword [ebp - 0x940]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x940]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x944], eax
mov byte [ebp - 4], 0x14
jmp 0x10002d33
push 1
lea eax, [ebp - 0x134]
push eax
push str.AOForever_new.exe
call esi
test eax, eax
jne 0x1000311e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, str.No_se_pudo_reemplazar_el_ejecutable_con_la_nueva_version._Error:
mov ecx, 0x10035120
mov edi, eax
call fcn.10007680
push edi
mov ecx, eax
call fcn.10003990
push eax
call fcn.10007930
add esp, 4
lea ecx, [ebp - 0x134]
cmp dword [ebp - 0x550], 0xf
lea eax, [ebp - 0x564]
cmova eax, dword [ebp - 0x564]
push 1
push ecx
push eax
call esi
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x550]
cmp ecx, 0xf
jbe 0x100030a1
mov edx, dword [ebp - 0x564]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003097
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034ff
push ecx
push edx
call fcn.1000a6bf
add esp, 8
mov eax, dword [ebp - 0x940]
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x550], 0xf
mov byte [ebp - 0x564], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x940]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x944], eax
lea ecx, [ebp - 0x93c]
call fcn.100049e0
mov eax, dword [ebp - 0x940]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x940]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x944], eax
mov byte [ebp - 4], 0x15
jmp 0x10002d33
lea ecx, [ebp - 0x564]
call fcn.10004de0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, str.Intentando_actualizar_de_nuevo__
mov ecx, 0x10035120
call fcn.10007680
mov ecx, dword [ebp - 0x7e0]
inc ecx
mov dword [ebp - 0x7e0], ecx
push ecx
mov ecx, eax
call fcn.10003b50
mov edx, 0x1002fea4
mov ecx, eax
call fcn.10007680
push 3
mov ecx, eax
call fcn.10003b50
mov edx, 0x1002fea0
mov ecx, eax
call fcn.10007680
push eax
call fcn.10007930
add esp, 4
lea eax, [ebp - 0x57c]
cmp dword [ebp - 0x568], 0xf
cmova eax, dword [ebp - 0x57c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x890]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x890]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x894], eax
lea ecx, [ebp - 0x88c]
call fcn.100049e0
mov eax, dword [ebp - 0x890]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x890]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x894], eax
lea eax, [ebp - 0x828]
mov byte [ebp - 4], 0xe
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10009d47
mov byte [ebp - 4], 6
add esp, 4
mov ecx, dword [ebp - 0x568]
cmp ecx, 0xf
jbe 0x10003255
mov edx, dword [ebp - 0x57c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000324b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034ff
push ecx
push edx
call fcn.1000a6bf
add esp, 8
mov edi, dword [ebp - 0x948]
mov ecx, dword [ebp - 0x7e0]
jmp 0x100028a0
mov edx, str.No_se_pudo_completar_la_actualizacion_despues_de_varios_intentos.
mov ecx, 0x10035120
call fcn.10007680
push eax
call fcn.10007930
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x10002d4c
mov edx, str.Fallo_la_recepci
mov ecx, 0x10035120
call fcn.10007680
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call fcn.10003b50
jmp 0x10003275
mov edx, 0x1002fd5c
mov ecx, 0x10035120
call fcn.10007680
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, esi
call fcn.10003b50
push eax
call fcn.10007930
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0x538]
cmp ecx, 0xf
jbe 0x10003320
mov edx, dword [ebp - 0x54c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003316
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034ff
push ecx
push edx
call fcn.1000a6bf
add esp, 8
mov byte [ebp - 0x54c], 0
mov dword [ebp - 0x538], 0xf
mov dword [ebp - 0x53c], 0
jmp 0x100034d3
xorps xmm0, xmm0
mov dword [ebp - 0x974], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x970], 0
movups xmmword [ebp - 0x984], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003364
sub ecx, edx
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x984]
call fcn.10007c30
cmp dword [ebp - 0x970], 0xf
lea ecx, [ebp - 0x984]
mov esi, dword [ebp - 0x974]
cmova ecx, dword [ebp - 0x984]
cmp esi, 8
jne 0x100033fd
mov edx, str.NOUPDATE
sub esi, 4
jb 0x100033b7
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100033bc
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100033a6
cmp esi, 0xfffffffc
je 0x100033f0
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100033e9
cmp esi, 0xfffffffd
je 0x100033f0
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100033e9
cmp esi, 0xfffffffe
je 0x100033f0
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100033e9
cmp esi, 0xffffffff
je 0x100033f0
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100033f0
sbb eax, eax
or eax, 1
jmp 0x100033f2
xor eax, eax
mov byte [ebp - 0x941], 1
test eax, eax
je 0x10003404
mov byte [ebp - 0x941], 0
mov eax, dword [ebp - 0x970]
cmp eax, 0xf
jbe 0x1000344c
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x984]
mov edx, eax
cmp ecx, 0x1000
jb 0x10003442
mov eax, dword [edx - 4]
add ecx, 0x23
sub edx, eax
mov dword [ebp - 0x954], eax
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100034ff
mov eax, dword [ebp - 0x954]
push ecx
push eax
call fcn.1000a6bf
add esp, 8
cmp byte [ebp - 0x941], 0
je 0x10003467
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x10002a77
push 0x10
push str.Error
push str.Error_en_la_respuesta_del_servidor.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x10002387
lea ecx, [ebp - 0x64c]
call fcn.10003510
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000a47c
mov esp, ebp
pop ebp
ret
call fcn.100126e3
call fcn.100126e3
call fcn.100126e3
call fcn.1000a5b2
int3