Function at 0x51ef6a
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x60
push 0xffffffffffffffff
push 0x5c7fa7
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x72cec4]
xor eax, ebp
mov dword [ebp + 0x5c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov edi, dword [ebp + 0x68]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
mov al, byte [0x73050d]
mov dword [ebp - 4], 0
nop
cmp al, 0xfe
jg 0x51eba5
xor ebx, ebx
jmp 0x51ebca
mov eax, dword fs:[0x2c]
mov ecx, dword [0x730f2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x73055c]
cmp eax, dword [ecx + 0x2c]
jg 0x51f1d0
mov ebx, 0x730548
mov esi, dword [ebp + 0x6c]
cmp esi, 0x2e
ja case.0x51ebd6.15
jmp dword [esi*4 + 0x51f224]
push 0xe
push edi
mov ecx, ebx
call fcn.0051e250
jmp 0x51f18f
push 0xf
push edi
mov ecx, ebx
call fcn.0051e250
jmp 0x51f18f
push 0x51
push edi
mov ecx, ebx
call fcn.0051e250
jmp 0x51f18f
push 0x50
push edi
mov ecx, ebx
call fcn.0051e250
jmp 0x51f18f
push 0
push edi
mov ecx, ebx
call fcn.0051dd10
jmp 0x51f18f
push 1
push edi
mov ecx, ebx
call fcn.0051dd10
jmp 0x51f18f
push 0
push edi
mov ecx, ebx
call fcn.0051f900
jmp 0x51f18f
push 1
push edi
mov ecx, ebx
call fcn.0051f900
jmp 0x51f18f
push 0
push edi
mov ecx, ebx
call fcn.0051deb0
jmp 0x51f18f
push 1
push edi
mov ecx, ebx
call fcn.0051deb0
jmp 0x51f18f
push 0
push 0
lea ecx, [ebp + 0x70]
call fcn.004cddf0
push eax
push edi
mov ecx, ebx
call fcn.0051dff0
jmp 0x51f18f
push 1
jmp 0x51ec75
push 2
jmp 0x51ec75
push 0
push 0
lea ecx, [ebp + 0x70]
call fcn.004cddf0
push eax
push edi
mov ecx, ebx
call fcn.0051e990
jmp 0x51f18f
push 0
push 0
lea ecx, [ebp + 0x70]
call fcn.004cddf0
push eax
push edi
mov ecx, ebx
call fcn.0051f3c0
jmp 0x51f18f
push 1
jmp 0x51ec97
push 1
jmp 0x51ecb1
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x70]
call fcn.004cdbf0
push 1
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
push edi
call fcn.005202a0
jmp 0x51f18f
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x70]
call fcn.004cdbf0
push 0
mov ecx, ebx
push dword [eax + 4]
push dword [eax]
push edi
call fcn.005202a0
jmp 0x51f18f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004ce660
push 1
mov ecx, ebx
push dword [eax]
push edi
call fcn.00520510
jmp 0x51f18f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004ce660
push 0
mov ecx, ebx
push dword [eax]
push edi
call fcn.00520510
jmp 0x51f18f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004cdc80
mov byte [ebp - 4], 1
push 1
push eax
push edi
mov ecx, ebx
call fcn.00520130
lea ecx, [ebp - 0x10]
call fcn.004eec70
jmp 0x51f18f
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004cdc80
mov byte [ebp - 4], 2
push 0
jmp 0x51ed5d
push edi
mov ecx, ebx
call fcn.005221d0
jmp 0x51f18f
lea eax, [ebp - 0x38]
push 0x400
push eax
call fcn.0051e4e0
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
call fcn.004bb4c0
mov ecx, dword [eax + 8]
add esp, 8
mov eax, dword [eax + 4]
mov edx, esp
mov byte [ebp - 4], 4
mov dword [edx + 4], eax
lea eax, [ebp + 0x54]
push eax
mov dword [edx], ecx
call fcn.004bfbd0
add esp, 0xc
mov ecx, dword [eax]
mov bx, word [eax + 4]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x2c]
call fcn.004019e0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.004019c0
test esi, esi
jne 0x51ee02
movzx eax, word [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004cbab0
jmp 0x51f18f
cmp esi, 0x24
jne 0x51ee67
mov ax, word [ebp - 0x1a]
test ax, ax
je 0x51ee15
mov ebx, dword [ebp - 0x14]
jmp 0x51ee40
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x5cd3f0]
mov ecx, ebx
call esi
mov ebx, 2
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x14], ebx
call fcn.004c1180
movzx eax, ax
mov ecx, edi
movzx eax, ax
push eax
call fcn.004cbab0
or ebx, 1
test bl, 2
je 0x51f18f
lea ecx, [ebp - 0x10]
call fcn.004bb850
jmp 0x51f18f
test bx, bx
je 0x51ee74
movzx eax, bx
mov ebx, dword [ebp - 0x14]
jmp 0x51eea2
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x5cd3f0]
mov ecx, ebx
call esi
mov ebx, 4
mov byte [ebp - 4], 6
mov ecx, eax
mov dword [ebp - 0x14], ebx
call fcn.004c16c0
movzx eax, ax
movzx eax, ax
mov ecx, edi
push eax
call fcn.004cbab0
or ebx, 1
test bl, 4
je 0x51f18f
lea ecx, [ebp - 0x10]
call fcn.004bb850
jmp 0x51f18f
push 2
lea eax, [ebp - 0x10]
push eax
push 0xd
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51eeec
cmp word [ebp - 0x10], 0x31
jne 0x51eeec
cmp word [ebp - 0xe], 0
je 0x51eff9
push 0
mov ecx, edi
call fcn.004cbab0
jmp 0x51f18f
push 0x7b
push edi
mov ecx, ebx
call fcn.0051e250
jmp 0x51f18f
push 0xf
lea eax, [ebp + 0x30]
push eax
push 0x28
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je case.0x51ebd6.15
push 0xffffffffffffffff
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.004b6680
add esp, 0xc
mov ecx, edi
push eax
call fcn.004cba30
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x51f18f
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51f18f
push 4
push 2
push dword [ebp + 0x50]
call fcn.00461780
add esp, 0xc
jmp 0x51f18f
push 0xf
lea eax, [ebp + 0x30]
push eax
push 0x29
jmp 0x51ef11
push 4
lea eax, [ebp + 0x54]
push eax
push 0x100c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51eff9
push 0xffffffffffffffff
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004b6680
push 0xa
push 0
push dword [eax + 4]
mov byte [ebp - 4], 7
push dword [eax + 8]
call fcn.00497ca0
xor ecx, ecx
add esp, 0x1c
cmp ecx, edx
je 0x51efc1
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x1c]
inc eax
mov ecx, edi
push eax
call fcn.004cbae0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x51f18f
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51f18f
push 4
push 2
push dword [ebp - 0x2c]
call fcn.00461780
add esp, 0xc
jmp 0x51f18f
push 1
mov ecx, edi
call fcn.004cbab0
jmp 0x51f18f
push 0
lea ecx, [ebp + 0x70]
call fcn.004ce6d0
push eax
push edi
mov ecx, ebx
call fcn.0051db30
jmp 0x51f18f
mov ecx, dword [ebp + 0x80]
mov eax, ecx
and eax, 0xfffffffc
cmp eax, 0x72c8a4
je 0x51f10d
test eax, eax
je 0x51f06f
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x51f04b
push eax
call fcn.004824f0
add esp, 4
mov esi, eax
mov eax, dword [0x72c8b0]
test eax, eax
jne 0x51f061
push 0x72c8a4
call fcn.004824f0
add esp, 4
cmp esi, eax
je 0x51f10d
mov ecx, dword [ebp + 0x80]
xorps xmm0, xmm0
mov dword [ebp + 0x30], 0
movq qword [ebp + 0x28], xmm0
mov dword [ebp + 0x38], 2
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov byte [ebp - 4], 8
test cl, 1
je 0x51f0ad
mov eax, dword [ebp + 0x70]
mov esi, dword [eax + 4]
add esi, eax
jmp 0x51f0b0
lea esi, [ebp + 0x70]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x70]
call fcn.004cca10
lea ecx, [ebp + 0x28]
push ecx
push 0x72c8a4
push esi
push dword [eax]
call fcn.0047c760
add esp, 0x10
lea eax, [ebp + 0x28]
lea ecx, [ebp]
push eax
call fcn.0051d740
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x51f103
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x51f103
push 4
push 2
push dword [ebp + 0x40]
call fcn.00461780
add esp, 0xc
lea ecx, [ebp + 0x28]
call fcn.004cbe90
jmp 0x51f13d
mov eax, dword [ebp + 0x70]
lea ecx, [ebp]
mov esi, dword [eax + 4]
add esi, eax
push esi
call fcn.004cb850
mov ecx, dword [esi + 0x18]
mov dword [ebp + 0x18], ecx
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ebp + 0x20], eax
test ecx, ecx
je 0x51f13d
mov eax, 1
lock xadd dword [ecx], eax
lea eax, [ebp]
mov byte [ebp - 4], 9
push eax
push edi
mov ecx, ebx
call fcn.0051faa0
lea ecx, [ebp]
call fcn.004bb880
jmp 0x51f18f
push edi
mov ecx, ebx
call fcn.005207b0
jmp 0x51f18f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0
lea ecx, [ebx + 8]
mov dword [ebx], eax
mov dword [ebx + 4], 0
call fcn.00496e30
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 2
lea ecx, [ebp + 0x70]
call fcn.004cbe90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c]
xor ecx, ebp
call fcn.00596709
lea esp, [ebp + 0x60]
pop ebp
ret 0x20
push 4
push edi
mov ecx, ebx
call fcn.0051e250
jmp 0x51f18f
push 8
push edi
mov ecx, ebx
call fcn.0051e250
jmp 0x51f18f
push 0x73055c
call fcn.0059732a
add esp, 4
cmp dword [0x73055c], 0xffffffff
jne 0x51ebc5
xorps xmm0, xmm0
movups xmmword [0x73054c], xmm0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [0x730548], eax
push 0x5cc450
mov byte [0x73050d], 0xff
call fcn.00596c81
push 0x73055c
call fcn.005972e0
add esp, 8
jmp 0x51ebc5