Function at 0x49e820
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x5562f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x28], 0x55f220
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x84], 0
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x8c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov byte [esp + 0x88], 1
call fcn.004fcf60
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x90]
push edx
lea ecx, [esi + 0xd4]
push 0
push eax
mov dword [esp + 0x20], ecx
call fcn.00531d81
mov esi, dword [edi + 0x410]
mov edi, dword [edi + 0x414]
mov ecx, esi
or ecx, edi
je 0x49ece1
push 0
push 0x400
push edi
push esi
call fcn.0051e2c0
mov dword [esp + 0x1c], eax
mov ecx, edi
cdq
mov ebx, eax
mov eax, esi
sub eax, ebx
push 0
sbb ecx, edx
push 0x400
push ecx
push eax
mov dword [esp + 0x34], edx
call fcn.0051e210
mov ebp, eax
and ebp, 0x800003ff
jns 0x49e8ea
dec ebp
or ebp, 0xfffffc00
inc ebp
mov eax, ebp
mov ecx, esi
shl eax, 0xa
cdq
sub ecx, eax
mov eax, edi
sbb eax, edx
sub ecx, ebx
mov ebx, dword [esp + 0x24]
push 0
sbb eax, ebx
push 0x100000
push eax
push ecx
call fcn.0051e210
mov ebx, eax
and ebx, 0x800003ff
jns 0x49e920
dec ebx
or ebx, 0xfffffc00
inc ebx
push 0
push 0x40000000
push edi
push esi
call fcn.0051e210
lea ecx, [esp + 0x10]
push 3
push ecx
mov esi, eax
push 0xe
push 0x400
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x49e974
mov edi, 0x59a5b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x49ea42
cmp ebx, 0x3e7
jg 0x49ea42
test ebx, ebx
jne 0x49e9fc
cmp ebp, 0x3e7
jg 0x49e9fc
test ebp, ebp
je 0x49e9da
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [0x5bafd8]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x14]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push ebp
jmp 0x49ea7b
mov eax, dword [0x5bafd4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x34]
push str._d___s
push edx
call fcn.0051d0e8
add esp, 0x10
jmp 0x49ea8d
lea ebp, [ebp + ebp*4]
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
mov eax, dword [0x5bafdc]
push eax
mov eax, 0x66666667
sar ecx, 0xa
imul ecx
sar edx, 2
mov ecx, edx
lea eax, [esp + 0x30]
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [esp + 0x18]
push edx
push ebx
push str._d_s_02d___s
push eax
jmp 0x49ea85
lea ebx, [ebx + ebx*4]
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov edx, dword [0x5bafe0]
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
push edx
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x14]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push esi
lea edx, [esp + 0x3c]
push str._d_s_02d___s
push edx
call fcn.0051d0e8
add esp, 0x18
mov edi, dword [esp + 0x90]
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
push 1
push edi
call fcn.00531d81
mov ebx, dword [esp + 0x8c]
cmp dword [ebx + 0x644], 3
jne 0x49eac3
mov ecx, dword [0x5bb17c]
push ecx
jmp 0x49ebad
mov edx, dword [ebx + 0x418]
mov eax, dword [ebx + 0x41c]
or edx, eax
je 0x49eb77
lea eax, [esp + 0x8c]
push 3
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x49eb20
mov edi, 0x59a5b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x8c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x90]
fild qword [ebx + 0x418]
fmul dword [0x5602b0]
fild qword [ebx + 0x410]
fdivp st(1)
fld st(0)
call fcn.0051ca44
mov esi, eax
mov dword [esp + 0x20], esi
fild dword [esp + 0x20]
fsubr st(1)
fmul dword [0x5602b0]
call fcn.0051ca44
lea ecx, [esp + 0x8c]
push eax
push ecx
push esi
lea edx, [esp + 0x38]
push str._d_s_02d__
push edx
fstp st(0)
call fcn.0051d0e8
add esp, 0x14
lea eax, [esp + 0x2c]
push eax
jmp 0x49ebad
mov eax, dword [ebx + 0x768]
cmp eax, 0x7565
jne 0x49eb8d
mov ecx, dword [0x5bae4c]
push ecx
jmp 0x49ebad
cmp eax, 0x7573
jne 0x49eb9b
push str.Not_modified
jmp 0x49ebad
cmp eax, 0x7540
je 0x49ebb7
test eax, eax
je 0x49ebb7
mov edx, dword [0x5bae44]
push edx
push 2
push edi
mov ecx, ebp
call fcn.00531d81
mov eax, dword [ebx + 0x420]
test eax, eax
je 0x49ece1
cmp dword [ebx + 0x644], 3
je 0x49ece1
mov ecx, dword [ebx + 0x410]
mov esi, dword [ebx + 0x418]
mov edx, dword [ebx + 0x41c]
sub ecx, esi
mov esi, dword [ebx + 0x414]
sbb esi, edx
cdq
push edx
push eax
push esi
push ecx
call fcn.0051e210
mov esi, edx
mov edi, eax
test esi, esi
jg 0x49ec1f
jl 0x49ec06
test edi, edi
jae 0x49ec1f
mov edx, dword [0x5bb0f8]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.0051d0e8
add esp, 8
jmp 0x49eccb
push 0
push 0x3c
push esi
push edi
call fcn.0051e2c0
mov ebx, eax
mov ecx, edi
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
push 0
push 0x3c
push eax
push ecx
call fcn.0051e210
push 0
push 0x3c
push edx
push eax
call fcn.0051e2c0
push 0
push 0xe10
push esi
push edi
mov ebp, eax
call fcn.0051e210
test edx, edx
jg 0x49ecb5
jl 0x49ec68
cmp eax, 0x2710
ja 0x49ecb5
test eax, eax
je 0x49ec84
mov ecx, dword [0x5bb150]
push ebp
push eax
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.0051d0e8
add esp, 0x10
jmp 0x49ecc7
test ebp, ebp
push ebx
je 0x49ec9f
mov eax, dword [0x5bb14c]
push ebp
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0051d0e8
add esp, 0x10
jmp 0x49ecc7
mov edx, dword [0x5bb148]
lea eax, [esp + 0x40]
push edx
push eax
call fcn.0051d0e8
add esp, 0xc
jmp 0x49ecc7
lea ecx, [esp + 0x3c]
push 0x597d04
push ecx
call fcn.0051d0e8
add esp, 8
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x3c]
push edx
push 3
push eax
mov ecx, ebp
call fcn.00531d81
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 0
call fcn.00537b04
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 8