Function at 0x100f5430
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023327e
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x102db080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
lea esi, [eax + 0x30]
mov dword [ebp - 0x5c], eax
xor ecx, ecx
mov dword [ebp - 0x58], 1
xor edx, edx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [eax + 0x18]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x54], eax
mov byte [esi], dl
mov dword [ecx + 0x10], 1
mov eax, ecx
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], edx
mov dword [ebp - 0x58], 1
jb 0x100f54d3
mov eax, dword [ecx]
mov dword [eax], 0x2e
mov edi, dword [edi]
test edi, edi
je 0x100f5807
push 4
lea eax, [ebp - 0x20]
movlpd qword [ebp - 0x20], xmm0
push eax
push 0xf
push edi
movlpd qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100f5807
push 4
lea eax, [ebp - 0x18]
push eax
push 0xe
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100f5807
push 0xa
lea eax, [ebp - 0x34]
push eax
push 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100f5807
lea edx, [ebp - 0x18]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100f5543
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0x18]
sub edx, ecx
sar edx, 1
push edx
push eax
lea ecx, [edi + 0x18]
call fcn.100854e0
lea ecx, [ebp - 0x20]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f5570
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.100854e0
mov cx, word [ebp - 0x34]
xor dl, dl
mov dword [ebp - 0x44], edx
mov eax, closesocket
mov dword [ebp - 0x40], 0
test cx, cx
je 0x100f571d
movzx ecx, cx
mov edi, 1
movzx ecx, cx
cmp ecx, 0x3b
je 0x100f56f9
lea eax, [ecx - 0x31]
cmp ax, 8
ja 0x100f56ed
mov edx, dword [esi + 0x10]
sub cl, 0x30
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x48], edi
cmp edx, edi
jae 0x100f5604
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edi, 0x10
jb 0x100f55ef
mov eax, dword [esi]
mov byte [eax + edx], cl
mov edi, 1
mov byte [eax + edx + 1], 0
mov edx, dword [ebp - 0x44]
jmp 0x100f56f9
mov eax, closesocket
sub eax, edx
cmp eax, 1
jb 0x100f5825
lea eax, [edx + 1]
mov edi, eax
mov dword [ebp - 0x4c], eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x100f562e
mov edi, closesocket
jmp 0x100f564f
mov ecx, dword [ebp - 0x48]
mov eax, closesocket
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x100f5647
mov edi, closesocket
jmp 0x100f564f
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.1007a130
cmp dword [ebp - 0x48], 0x10
mov ecx, eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x14], edi
mov dword [ebp - 0x3c], ecx
push eax
lea edi, [ecx + eax]
mov dword [ebp - 0x38], edi
jb 0x100f56cb
mov edi, dword [esi]
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov eax, dword [ebp - 0x50]
mov byte [ecx], al
mov byte [ecx + 1], 0
mov ecx, dword [ebp - 0x48]
inc ecx
cmp ecx, 0x1000
jb 0x100f56b2
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x100f57ed
mov edi, edx
push ecx
push edi
call fcn.100b9c1b
mov eax, dword [ebp - 0x3c]
add esp, 8
mov edx, dword [ebp - 0x44]
mov edi, 1
mov dword [esi], eax
jmp 0x100f56f9
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x50]
add esp, 0xc
mov edx, dword [ebp - 0x44]
mov byte [edi], al
mov eax, dword [ebp - 0x3c]
mov byte [edi + 1], 0
mov edi, 1
mov dword [esi], eax
jmp 0x100f56f9
cmp ecx, 0x30
movzx edx, dl
cmove edx, edi
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x40]
inc ecx
mov dword [ebp - 0x40], ecx
movzx eax, word [ebp + ecx*2 - 0x34]
mov ecx, eax
test ax, ax
jne 0x100f55b1
test dl, dl
jne 0x100f5807
mov eax, closesocket
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], edx
cmp ecx, edx
jae 0x100f5745
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
cmp edx, 0x10
jb 0x100f573a
mov esi, dword [esi]
mov word [esi + ecx], 0x80
jmp 0x100f5807
sub eax, ecx
cmp eax, 1
jb 0x100f5825
lea eax, [ecx + 1]
mov edi, eax
mov dword [ebp - 0x38], eax
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x100f576a
mov edi, closesocket
jmp 0x100f5788
mov ecx, edx
mov eax, closesocket
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x100f5780
mov edi, closesocket
jmp 0x100f5788
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.1007a130
cmp dword [ebp - 0x40], 0x10
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esi + 0x14], edi
mov dword [ebp - 0x3c], eax
push ecx
lea edi, [eax + ecx]
mov dword [ebp - 0x38], edi
jb 0x100f57f3
mov edi, dword [esi]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x40]
inc ecx
mov word [eax], 0x80
cmp ecx, 0x1000
jb 0x100f57e1
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x100f57ed
mov edi, edx
push ecx
push edi
call fcn.100b9c1b
add esp, 8
jmp 0x100f5802
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [edi], 0x80
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
mov eax, dword [ebp - 0x54]
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.100b9f43
mov esp, ebp
pop ebp
ret
call fcn.10089b30
int3