Function at 0x4a5250
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], esi
test edi, edi
je 0x4a5c7a
cmp ecx, dword [edi + 0x54e0]
jge 0x4a5c7a
cmp edx, dword [edi + 0x78]
jge 0x4a5c7a
and esi, 8
push esi
push edx
push ebx
push ecx
push edi
call fcn.004a5d60
add esp, 0x14
mov ebx, eax
mov dword [ebp - 0x44], ebx
test esi, esi
jne 0x4a5c7f
test ebx, ebx
je 0x4a5c7a
mov al, byte [ebx]
mov edx, ebx
movzx ecx, word [ebp + 0x18]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x58], edx
test al, al
je 0x4a5328
mov ecx, ebx
cmp al, 0x11
jae 0x4a5321
cmp al, 9
jb 0x4a52e0
cmp al, 0xd
jbe 0x4a5321
movsx eax, al
inc ebx
dec eax
cmp eax, 0xe
ja case.0x4a52f1.8
movzx eax, byte [eax + 0x4a5ca4]
jmp dword [eax*4 + 0x4a5c90]
lea ebx, [ecx + 2]
jmp case.0x4a52f1.8
lea ebx, [ecx + 0x11]
jmp case.0x4a52f1.8
xor eax, eax
cmp byte [ebx], 0x20
jle 0x4a5310
inc eax
inc ebx
cmp eax, 8
jl 0x4a5304
cmp byte [ebx], 3
jne case.0x4a52f1.8
inc ebx
jmp case.0x4a52f1.8
lea ebx, [ecx + 7]
mov al, byte [ebx]
test al, al
jne 0x4a52d2
movzx ecx, word [ebp + 0x18]
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp - 0x50]
test al, 2
je 0x4a5390
mov esi, ebx
sub esi, edx
lea eax, [esi + 0x64]
cmp dword [edi + 0x5814], eax
jae 0x4a535c
push eax
push dword [edi + 0x5810]
mov dword [edi + 0x5814], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov edx, dword [ebp - 0x58]
add esp, 8
mov dword [edi + 0x5810], eax
push esi
push edx
push dword [edi + 0x5810]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi + 0x5810]
add esp, 0xc
sub eax, dword [ebp - 0x58]
mov byte [eax + ebx], 0
mov eax, dword [edi + 0x5810]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
test al, 1
cmovne edx, ebx
mov dword [ebp - 0x58], edx
test al, 4
je 0x4a53af
pop edi
pop esi
mov eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
mov al, byte [ebx]
mov esi, ebx
cmp al, 0x20
jne 0x4a53bf
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x4a53b7
test al, al
je 0x4a54bb
cmp al, 0x30
jl 0x4a53d3
cmp al, 0x39
jle 0x4a54bb
mov eax, esi
mov dword [ebp - 0x40], 0
sub eax, edx
mov dword [ebp - 0x50], eax
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp - 0x48], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a53f0
sub ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
cmp ecx, eax
cmova eax, ecx
add eax, 0x64
cmp dword [edi + 0x5814], eax
jae 0x4a542b
push eax
push dword [edi + 0x5810]
mov dword [edi + 0x5814], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov edx, dword [ebp - 0x58]
add esp, 8
mov dword [edi + 0x5810], eax
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4a5445
push eax
push edx
push dword [edi + 0x5810]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x50]
add esp, 0xc
mov ecx, dword [edi + 0x5810]
add ecx, eax
mov dword [ebp - 0x48], ecx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4a5452
cmp dword [ebp - 0x40], 2
jne 0x4a58ef
call fcn.00493410
cmp byte [eax + 0xd08], 0
je 0x4a58ef
call fcn.00493410
cmp byte [eax + 0xd08], 0x2e
je 0x4a58ef
mov esi, dword [ebp - 0x48]
push 0x2e
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr
add esp, 8
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4a5b48
call fcn.00493410
mov cl, byte [eax + 0xd08]
mov eax, dword [ebp - 0x48]
mov byte [eax], cl
jmp 0x4a58ef
mov eax, esi
sub eax, edx
mov dword [ebp - 0x50], eax
lea eax, [ecx - 1]
cmp eax, 0xe
ja case.0x4a54ce.2
jmp dword [eax*4 + 0x4a5cb4]
mov eax, dword [ebp - 0x54]
add eax, 0x64
mov dword [ebp - 0x3c], 0
push eax
push edi
call fcn.004a3360
push 8
push esi
call fcn.0047fcc0
mov dword [ebp - 0x44], eax
add esp, 0x10
mov eax, esi
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a5500
sub eax, edx
mov dword [ebp - 0x40], eax
cmp eax, 8
jbe 0x4a5527
cmp eax, 0xd
je 0x4a5527
lea eax, [esi + 8]
push 6
push eax
call fcn.0047fcc0
add esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4a5543
push eax
push dword [ebp - 0x58]
push dword [edi + 0x5810]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x50]
add esp, 0xc
mov ecx, dword [edi + 0x5810]
add ecx, eax
mov eax, dword [ebp - 0x40]
cmp eax, 8
jbe 0x4a555c
cmp eax, 0xd
je 0x4a555c
xor eax, eax
jmp 0x4a5561
mov eax, 1
push 0
push eax
push 0
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x44]
push ecx
call fcn.0047ad60
add esp, 0x1c
cmp word [ebp + 0x18], 0xc
jne 0x4a58ef
cmp dword [ebp - 0x44], 0
jle 0x4a58ef
mov ecx, dword [edi + 0x5810]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5595
lea eax, [esi + 0xe]
sub ecx, edx
push 3
push eax
mov dword [ebp - 0x40], ecx
call fcn.0047fcc0
push eax
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x40]
add eax, 0x64
push str.___03.3u_
push eax
mov eax, dword [edi + 0x5810]
add eax, dword [ebp - 0x40]
push eax
call fcn.00482630
add esp, 0x18
jmp 0x4a58ef
push 0xa
push esi
call fcn.0047fcc0
mov edx, ebx
mov dword [ebp - 0x40], eax
add esp, 8
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4a55e6
sub edx, eax
mov eax, dword [ebp - 0x54]
cmp edx, eax
jbe 0x4a560b
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5600
sub ecx, edx
jmp 0x4a560d
mov ecx, eax
lea eax, [ecx + 0x64]
push eax
push edi
call fcn.004a3360
mov esi, dword [ebp - 0x50]
add esp, 8
test esi, esi
je 0x4a5633
push esi
push dword [ebp - 0x58]
push dword [edi + 0x5810]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [edi + 0x5810]
mov eax, dword [ebp - 0x40]
add edx, esi
mov dword [ebp - 0x50], edx
test eax, eax
jne 0x4a5662
mov ecx, 0x4eb673
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4a5650
jmp 0x4a58ef
lea ecx, [ebp - 0x40]
cdq
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push edx
push eax
call fcn.0047b750
push 0
push 0
push 0
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x50]
call fcn.0047ad60
add esp, 0x2c
jmp 0x4a58ef
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5695
mov eax, dword [ebp - 0x54]
sub ecx, edx
cmp ecx, eax
jbe 0x4a56bb
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a56b0
sub ecx, edx
jmp 0x4a56bd
mov ecx, eax
lea eax, [ecx + 0x64]
push eax
push edi
call fcn.004a3360
mov eax, dword [ebp - 0x50]
add esp, 8
test eax, eax
je 0x4a56e6
push eax
push dword [ebp - 0x58]
push dword [edi + 0x5810]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x50]
add esp, 0xc
mov ecx, dword [edi + 0x5810]
add ecx, eax
mov dword [ebp - 0x3c], ecx
call fcn.00493410
cmp dword [eax + 0xd04], 0
jne 0x4a5716
mov ecx, dword [ebp - 0x3c]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4a5704
jmp 0x4a58ef
push esi
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
add esp, 4
mov dword [ebp - 0x50], eax
cmp word [ebp + 0x18], 8
je 0x4a578e
cmp eax, 0x3c
jge 0x4a5745
mov ecx, dword [ebp - 0x3c]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4a5733
jmp 0x4a58ef
mov esi, dword [ebp - 0x50]
cmp esi, 0xe10
jge 0x4a5791
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
shl ecx, 4
sub ecx, eax
cdq
shl ecx, 2
sub esi, ecx
mov ecx, 0x3c
idiv ecx
push esi
push edx
push str._d:_02d
push dword [ebp - 0x3c]
call fcn.004010a0
add esp, 0x10
jmp 0x4a58ef
mov esi, dword [ebp - 0x50]
mov eax, 0x88888889
mov ecx, esi
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
shl edx, 2
sub ecx, edx
cdq
push ecx
mov ecx, 0x3c
idiv ecx
mov eax, 0x91a2b3c5
push edx
imul esi
add edx, esi
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str._d:_02d:_02d
push dword [ebp - 0x3c]
call fcn.004010a0
add esp, 0x14
jmp 0x4a58ef
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a57f0
mov eax, dword [ebp - 0x54]
sub ecx, edx
cmp ecx, eax
jbe 0x4a580e
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4a5803
sub ebx, ecx
jmp 0x4a5810
mov ebx, eax
lea eax, [ebx + 0x64]
push eax
push edi
call fcn.004a3360
mov ebx, dword [ebp - 0x50]
add esp, 8
test ebx, ebx
je 0x4a5836
push ebx
push dword [ebp - 0x58]
push dword [edi + 0x5810]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [edi + 0x5810]
add eax, ebx
push esi
mov dword [ebp - 0x40], eax
call sub.api_ms_win_crt_convert_l1_1_0.dll__atoi64
add esp, 4
mov dword [ebp - 0x50], eax
mov ebx, edx
push 0
push 0x36ee80
push ebx
push eax
call fcn.004e2750
push 0
push 0x3e8
push ebx
push dword [ebp - 0x50]
mov edi, eax
mov esi, edx
call fcn.004e2750
mov edx, dword [ebp - 0x50]
imul ecx, eax, 0x3e8
mov eax, edx
sub eax, ecx
push eax
push 0
push 0xea60
push ebx
push edx
call fcn.004e2750
push 0
push 0xea60
push edx
push eax
call fcn.004e2800
mov ecx, dword [ebp - 0x50]
sub ecx, eax
mov eax, ebx
push 0
push 0x3e8
sbb eax, edx
push eax
push ecx
call fcn.004e2750
push eax
push 0
push 0x36ee80
push esi
push edi
call fcn.004e2800
mov ecx, dword [ebp - 0x50]
sub ecx, eax
push 0
push 0xea60
sbb ebx, edx
push ebx
push ecx
call fcn.004e2750
push eax
push esi
push edi
push str._I64d:_02d:_02d._03d
push dword [ebp - 0x40]
call fcn.004010a0
mov ebx, dword [ebp - 0x44]
add esp, 0x1c
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x4a5c63
mov ecx, dword [edi + 0x5810]
sub ecx, dword [ebp - 0x58]
add ecx, ebx
mov edx, ecx
mov dword [edi + 0x5810], ecx
lea eax, [edx + 1]
mov dword [ebp - 0x48], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x4a5913
sub edx, dword [ebp - 0x48]
cmp edx, esi
jae 0x4a5c54
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x48], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a5930
sub edx, dword [ebp - 0x48]
cmp esi, edx
jbe 0x4a5b6f
mov ecx, esi
jmp 0x4a5b7b
push 0xa
lea eax, [ebp - 0x48]
push eax
push ebx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push 0x32
push edi
mov dword [ebp - 0x40], eax
call fcn.004a3360
mov esi, dword [ebp - 0x50]
add esp, 0x14
test esi, esi
je 0x4a597c
push esi
push dword [ebp - 0x58]
push dword [edi + 0x5810]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x40]
mov eax, dword [edi + 0x5810]
push str.0x_.8x
add eax, esi
push 0x32
push eax
call fcn.00482630
add esp, 0x10
jmp 0x4a58ef
push 0x32
push edi
call fcn.004a3360
mov esi, dword [ebp - 0x50]
add esp, 8
test esi, esi
je 0x4a59c0
push esi
push dword [ebp - 0x58]
push dword [edi + 0x5810]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [edi + 0x5810]
mov edx, ebx
add ecx, esi
nop word [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4a59d0
jmp 0x4a58ef
push ebx
call sub.api_ms_win_crt_convert_l1_1_0.dll__atoi64
add esp, 4
push 0
push 0x400
push edx
push eax
call fcn.004e2750
push 0xa
lea ecx, [ebp - 0x38]
push ecx
push edx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll__i64toa
jmp 0x4a5a33
push ebx
call fcn.004a25b0
fmul qword [0x4e5fc0]
lea eax, [ebp - 0x38]
add esp, 4
push 6
push eax
sub esp, 8
fstp qword [ebp - 0x4c]
movsd xmm0, qword [ebp - 0x4c]
movsd qword [esp], xmm0
call fcn.004a2a00
lea ebx, [ebp - 0x38]
add esp, 0x10
push 3
lea eax, [ebp - 0x44]
push eax
push 0x11
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5a51
mov eax, dword [ebp - 0x54]
sub ecx, edx
cmp ecx, eax
mov dword [ebp - 0x40], ecx
cmova eax, ecx
add eax, 0x64
push eax
push edi
mov dword [ebp - 0x48], eax
call fcn.004a3360
mov esi, dword [ebp - 0x50]
add esp, 8
test esi, esi
je 0x4a5a8e
push esi
push dword [ebp - 0x58]
push dword [edi + 0x5810]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, dword [edi + 0x5810]
add edi, esi
cmp dword [ebp - 0x40], 0
jne 0x4a5aa4
mov byte [edi], 0
jmp 0x4a58ec
push dword [ebp - 0x48]
push edi
push 0
push ebx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea esi, [eax - 1]
lea eax, [ebp - 0x44]
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_atoi
add esp, 4
test eax, eax
jle 0x4a5af2
lea eax, [edi - 1]
add eax, esi
cmp eax, edi
je 0x4a5af2
mov cl, byte [eax]
cmp cl, 0x30
jl 0x4a5aef
cmp cl, 0x39
jg 0x4a5aef
cmp cl, 0x30
jne 0x4a5af2
mov byte [eax], 0
dec eax
cmp eax, edi
jne 0x4a5ad4
jmp 0x4a5af2
mov byte [eax], 0
movzx eax, word [ebp + 0x18]
cmp eax, 9
jne 0x4a5b20
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4a5b00
mov ax, word [0x4e5e58]
mov word [edi], ax
mov al, byte [0x4e5e5a]
mov byte [edi + 2], al
jmp 0x4a58ec
cmp eax, 0xd
jne 0x4a58ec
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4a5b30
mov ax, word [0x4e5e5c]
mov word [edi], ax
jmp 0x4a58ec
push 0x2e
push esi
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr
mov esi, eax
add esp, 8
test esi, esi
je 0x4a58ef
call fcn.00493410
mov cl, byte [eax + 0xd08]
mov byte [esi], cl
jmp 0x4a58ef
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5b72
sub ecx, edx
lea eax, [ecx + 0x64]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edx, dword [edi + 0x5810]
add esp, 4
mov dword [ebp - 0x3c], eax
mov esi, eax
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi], cl
lea esi, [esi + 1]
test cl, cl
jne 0x4a5b92
mov edx, dword [edi + 0x5810]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5bb0
mov eax, dword [ebp + 0x20]
sub ecx, esi
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x40], ecx
test eax, eax
jne 0x4a5bdb
mov eax, esi
sub eax, ecx
push eax
lea eax, [edx + ecx]
push 0x20
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x4a5c43
push ecx
push dword [ebp - 0x3c]
cmp eax, 2
jne 0x4a5c06
sub edx, ecx
add edx, esi
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, esi
sub eax, dword [ebp - 0x40]
push eax
push 0x20
push dword [edi + 0x5810]
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
jmp 0x4a5c43
sub esi, ecx
shr esi, 1
lea eax, [edx + esi]
push eax
call sub.VCRUNTIME140.dll_memcpy
push esi
push 0x20
push dword [edi + 0x5810]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x54]
sub eax, esi
sub eax, dword [ebp - 0x40]
push eax
mov eax, dword [edi + 0x5810]
add eax, esi
add eax, dword [ebp - 0x40]
push 0x20
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x54]
add esp, 0x24
push dword [ebp - 0x3c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [edi + 0x5810]
add esp, 4
mov eax, dword [ebp - 0x58]
sub eax, ebx
mov byte [ecx + esi], 0
add dword [edi + 0x5810], eax
mov eax, dword [edi + 0x5810]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
mov eax, 0x4eb673
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e2538
mov esp, ebp
pop ebp
ret