Function at 0x1002cf40
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10148700
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ecx
mov eax, 0x127c
call fcn.1011abd0
mov eax, dword [0x101a49d4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x1270], eax
mov dword [ebp - 0x1268], eax
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x103c], 0xf
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1260]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1264], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1290], xmm0
movups xmmword [ebp - 0x1280], xmm0
mov dword [ebp - 0x128c], 0
mov dword [ebp - 0x1288], 1
mov dword [ebp - 0x1284], 6
lea eax, [ebp - 0x1264]
push eax
lea eax, [ebp - 0x1290]
push eax
push 0x1018ec5c
push str.ip_api.com
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov eax, dword [ebp - 0x1264]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov eax, dword [ebp - 0x1264]
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
push str.GET__json_HTTP_1.1_r_nHost:_ip_api.com_r_nConnection:_close_r_n_r_n
lea ecx, [ebp - 0x1068]
call fcn.10052c20
lea eax, [ebp - 0x1068]
cmp dword [ebp - 0x1054], 0x10
cmovae eax, dword [ebp - 0x1068]
push eax
call fcn.10124b10
add esp, 4
lea ecx, [ebp - 0x1068]
cmp dword [ebp - 0x1054], 0x10
cmovae ecx, dword [ebp - 0x1068]
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1024], 0xf
mov byte [ebp - 0x1038], 0
mov esi, dword [sym.imp.WS2_32.dll_recv]
nop dword [eax + eax]
push 0
push 0x1000
lea eax, [ebp - 0x1020]
push eax
push edi
call esi
test eax, eax
jle 0x1002d10a
push eax
lea eax, [ebp - 0x1020]
push eax
lea ecx, [ebp - 0x1038]
call fcn.10052a10
jmp 0x1002d0e0
push ecx
push str._country_:_
lea ecx, [ebp - 0x1038]
call fcn.10052610
mov esi, eax
cmp esi, 0xffffffff
je 0x1002d195
add esi, 0xb
lea eax, [ebp - 0x1038]
cmp dword [ebp - 0x1024], 0x10
cmovae eax, dword [ebp - 0x1038]
mov dword [ebp - 0x126c], eax
mov ecx, dword [ebp - 0x1028]
cmp esi, ecx
jae 0x1002d195
sub ecx, esi
push ecx
push 0x22
add eax, esi
push eax
call fcn.1011cd50
add esp, 0xc
test eax, eax
je 0x1002d195
sub eax, dword [ebp - 0x126c]
cmp eax, 0xffffffff
je 0x1002d195
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x1080]
push eax
lea ecx, [ebp - 0x1038]
call fcn.100525b0
push eax
lea ecx, [ebp - 0x1050]
call fcn.10052b70
lea ecx, [ebp - 0x1080]
call fcn.10052b20
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x1264]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x1038]
call fcn.10052b20
lea ecx, [ebp - 0x1068]
call fcn.10052b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10d0]
call fcn.1004f260
mov edx, eax
lea ecx, [ebp - 0x1050]
cmp dword [ebp - 0x103c], 0x10
cmovae ecx, dword [ebp - 0x1050]
mov eax, dword [ebp - 0x1040]
add eax, ecx
push eax
push ecx
mov esi, dword [ebp - 0x1270]
push esi
mov ecx, edx
call fcn.10055340
lea ecx, [ebp - 0x10d0]
call fcn.1004f1a0
mov edx, dword [ebp - 0x103c]
cmp edx, 0x10
jb 0x1002d245
inc edx
mov ecx, dword [ebp - 0x1050]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002d23b
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002d2b6
push edx
push ecx
call fcn.1011a823
add esp, 8
mov eax, esi
jmp 0x1002d298
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1011a2e1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10125fc5
int3