Function at 0x50fd90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596081
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x5ff1d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0xf8], 0xf
mov dword [ebp - 0xfc], 0
mov byte [ebp - 0x10c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xe0], 0xf
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0xf4], 0
push 0x64
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 1
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51008a
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x124]
call fcn.004a48c0
lea edx, [ebp - 0x10c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.00510390
test eax, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x110]
sete byte [ebp - 0x125]
cmp eax, 8
jb 0x50fe93
inc eax
lea ecx, [ebp - 0x124]
push eax
push dword [ebp - 0x124]
call fcn.004a5150
cmp byte [ebp - 0x125], 0
je 0x51008a
mov eax, dword [ebp - 0xfc]
inc eax
push eax
call fcn.00534493
add esp, 4
lea ecx, [ebp - 0x10c]
cmp dword [ebp - 0xf8], 0x10
mov esi, eax
mov edx, esi
cmovae ecx, dword [ebp - 0x10c]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x50fec8
push esi
call fcn.0057432e
add esp, 4
cmp ebx, 0x44
jge 0x50fee9
add ebx, 0xffffffc9
jmp 0x50feec
add ebx, 0xffffffbd
push 0xa
lea eax, [ebp - 0x12c]
push eax
push ebx
call fcn.00573275
add esp, 0xc
cmp dword [edi + 0x10], 0
je 0x50ffbb
cmp dword [edi + 0x14], 0x10
jb 0x50ff12
mov eax, dword [edi]
jmp 0x50ff14
mov eax, edi
mov ecx, dword [ebp - 0xe0]
mov bl, byte [eax]
cmp ecx, 1
jae 0x50ff3a
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xf4]
push 1
call fcn.004b3300
mov ecx, dword [ebp - 0xe0]
cmp ecx, 0x10
lea eax, [ebp - 0xf4]
cmovae eax, dword [ebp - 0xf4]
mov byte [eax], bl
lea eax, [ebp - 0xf4]
cmp dword [ebp - 0xe0], 0x10
mov dword [ebp - 0xe4], 1
cmovae eax, dword [ebp - 0xf4]
mov byte [eax + 1], 0
cmp byte [ebp - 0x12c], 0
jne 0x50ff7b
xor ecx, ecx
jmp 0x50ff8d
lea ecx, [ebp - 0x12c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50ff84
sub ecx, edx
push ecx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004b2b50
cmp dword [edi + 0x14], 0x10
jb 0x50ffa8
mov edi, dword [edi]
movzx eax, byte [edi]
lea ecx, [ebp - 0xf4]
push eax
push 1
call fcn.004b2fe0
jmp 0x50ffed
cmp byte [ebp - 0x12c], 0
jne 0x50ffc8
xor ecx, ecx
jmp 0x50ffda
lea ecx, [ebp - 0x12c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50ffd1
sub ecx, edx
push ecx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004b2930
mov al, byte [esi]
or edi, 0xffffffff
test al, al
je 0x510079
movzx eax, al
push eax
call fcn.00566500
add esp, 4
test eax, eax
jne 0x51001e
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510010
sub ecx, edx
cmp ecx, 2
jbe 0x510079
mov ebx, dword [ebp - 0x130]
cmp byte [esi], 0
jne 0x51002d
xor ecx, ecx
jmp 0x51003b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x510032
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x134]
lea eax, [edi + 1]
push eax
push esi
call fcn.004d7fb0
mov edi, eax
cmp edi, 0xffffffff
je 0x510079
push esi
call fcn.00574454
add esp, 4
lea ecx, [ebp - 0xf4]
push 0xffffffffffffffff
push 0
push ecx
mov ecx, dword [ebp - 0x138]
push eax
push edi
call fcn.004d85c0
mov byte [ebx], 1
jmp 0x510024
push esi
call fcn.0053448e
mov eax, dword [ebp - 0x13c]
add esp, 4
inc dword [eax]
mov eax, dword [ebp - 0xe0]
cmp eax, 0x10
jb 0x5100a8
inc eax
lea ecx, [ebp - 0xf4]
push eax
push dword [ebp - 0xf4]
call fcn.004b2e90
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xe0], 0xf
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0xf4], 0
cmp eax, 0x10
jb 0x5100e1
inc eax
lea ecx, [ebp - 0x10c]
push eax
push dword [ebp - 0x10c]
call fcn.004b2e90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00533fc6
mov esp, ebp
pop ebp
ret