Function at 0x4c8590
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x248]
sub esp, 0x248
push 0xffffffffffffffff
push 0x64ee0c
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x755898]
xor eax, ebp
mov dword [ebp + 0x244], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 0x250]
mov dword [ebp - 4], 0
wait
cmp byte [esi + 0x346], 0
jne 0x4c878d
cmp byte [ebp + 0x258], 0
je 0x4c87a8
mov ecx, dword [ebx + 0xbc]
call fcn.00453d30
mov edi, eax
test edi, edi
je 0x4c87a8
push edi
mov ecx, dword [ebx + 0xbc]
call fcn.00453d10
mov ecx, dword [ebx + 0xbc]
mov edx, dword [ecx + 0x5c]
cmp edi, edx
je 0x4c86dc
cmp edi, dword [ecx + 0x54]
je 0x4c86dc
mov ebx, dword [ecx + 0x58]
cmp edi, ebx
je 0x4c86dc
cmp eax, edx
je 0x4c86dc
cmp eax, dword [ecx + 0x54]
je 0x4c86dc
cmp eax, ebx
je 0x4c86dc
mov edx, dword [ecx + 0x60]
cmp edi, edx
jne 0x4c867c
cmp dword [esi + 0xad0], 0
jg 0x4c87a5
mov byte [esi + 0xae8], 1
or eax, 0xffffffff
wait
jmp 0x4c8faa
cmp eax, edx
jne 0x4c86a2
push edi
call fcn.005fd82e
cmp dword [esi + 0xad0], eax
je 0x4c87a5
mov byte [esi + 0xae8], 1
or eax, 0xffffffff
wait
jmp 0x4c8faa
mov edx, dword [ecx + 0x64]
cmp edi, edx
jne 0x4c86b2
cmp dword [esi + 0x4ec], 0
jmp 0x4c8666
cmp eax, edx
jne 0x4c87a5
push edi
call fcn.005fd82e
cmp dword [esi + 0x4ec], eax
je 0x4c87a5
mov byte [esi + 0xae8], 1
or eax, 0xffffffff
wait
jmp 0x4c8faa
xor eax, eax
mov dword [ebp + 0x228], eax
mov dword [ebp + 0x230], eax
mov word [ebp + 0x22c], ax
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x228]
push ecx
push edi
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0xbc]
call fcn.004ca620
mov byte [ebp - 0x1d], al
push edi
mov ecx, dword [ebx + 0xbc]
call fcn.004c9900
mov ebx, eax
mov cl, byte [ebp - 0x1d]
test cl, cl
je 0x4c8744
push edi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0xbc]
call fcn.005fd82e
xor ecx, ecx
cmp dword [esi + 0x324], eax
sete cl
mov eax, ecx
mov cl, byte [ebp - 0x1d]
jmp 0x4c8746
xor eax, eax
test ebx, ebx
je 0x4c8796
mov edx, 3
cmp ebx, edx
je 0x4c8773
cmp ebx, 1
jne 0x4c8762
cmp dword [esi + 0x944], edx
je 0x4c8777
jmp 0x4c876f
cmp ebx, 2
jne 0x4c8777
cmp dword [esi + 0x944], edx
jne 0x4c8777
test cl, cl
je 0x4c8796
test eax, eax
jne 0x4c8796
mov byte [esi + 0xae8], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x228]
call fcn.00401210
or eax, 0xffffffff
wait
jmp 0x4c8faa
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x228]
call fcn.00401210
mov ebx, dword [ebp - 0x1c]
xor edi, edi
mov ecx, dword [ebx + 0xcc]
cmp ecx, edi
je 0x4c87c7
cmp dword [ecx + 0x30], edi
je 0x4c87c7
push esi
call fcn.0045e1a0
test eax, eax
je 0x4c866c
mov dword [ebp - 0x6c], edi
push 0x30
push edi
lea edx, [ebp - 0x68]
push edx
call fcn.0061d9e0
add esp, 0xc
mov dword [ebp - 0x6c], 5
mov eax, dword [esi + 0x4e8]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x4c], eax
mov dword [ebp + 0x21c], edi
mov dword [ebp + 0x224], edi
xor eax, eax
mov word [ebp + 0x220], ax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x21c]
push ecx
mov ecx, esi
call fcn.005b5da0
mov eax, dword [ebp + 0x21c]
cmp eax, edi
je 0x4c8825
mov dword [ebp - 0x58], eax
jmp 0x4c8830
lea edx, [ebp + 0x220]
mov dword [ebp - 0x58], edx
mov eax, edx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4c8833
sub eax, edx
sar eax, 1
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edi
lea eax, [ebp - 0x6c]
push eax
push edi
push 0x104d
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x60]
cmp eax, edi
je 0x4c88e6
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c8870
sub eax, edx
je 0x4c88e6
mov dword [ebp + 0x210], edi
mov dword [ebp + 0x218], edi
xor edx, edx
mov word [ebp + 0x214], dx
mov byte [ebp - 4], 3
movzx eax, byte [esi + 0x34e]
neg eax
sbb eax, eax
and eax, 0xfde9
push eax
mov ecx, dword [esi + 0x60]
push ecx
lea ecx, [ebp + 0x210]
call fcn.00401980
mov eax, dword [ebp + 0x210]
cmp eax, edi
jne 0x4c88c4
lea eax, [ebp + 0x214]
push eax
mov edx, dword [ebp - 0x14]
push edx
push 8
mov eax, dword [ebx + 0x20]
push eax
call fcn.004530d0
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x210]
call fcn.00401210
mov edi, dword [esi + 0x4f0]
mov eax, dword [esi + 0x4f4]
mov ecx, edi
or ecx, eax
jne 0x4c8b67
mov edx, dword [esi + 0x110]
or edx, dword [esi + 0x114]
jne 0x4c8b67
mov eax, dword [esi + 0x44]
cmp eax, 4
je 0x4c8927
cmp eax, 5
je 0x4c8927
cmp dword [esi + 0x340], edx
je 0x4c8d2a
fldz
fcom qword [esi + 0x3c8]
fnstsw ax
test ah, 5
jnp 0x4c8952
cmp dword [esi + 0x3fc], 0
jl 0x4c8d28
jg 0x4c8952
cmp dword [esi + 0x3f8], 0
jbe 0x4c8d28
fcom qword [esi + 0x3c8]
fnstsw ax
test ah, 5
jp 0x4c8970
fld qword [esi + 0x3c8]
call fcn.0061f596
mov edi, eax
mov ebx, edx
jmp 0x4c897c
mov edi, dword [esi + 0x3f8]
mov ebx, dword [esi + 0x3fc]
test ebx, ebx
jl 0x4c89e6
jg 0x4c8986
test edi, edi
jbe 0x4c89e6
fstp st(0)
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 7
mov dword [ebp - 0x38], vtable.StringConvertor.0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
lea ecx, [ebp - 0x38]
call fcn.0043f320
mov ecx, dword [0x75ad10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 3
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
push edx
call fcn.0045a2d0
add esp, 0x14
mov byte [ebp - 4], 7
mov dword [ebp - 0x38], vtable.StringConvertor.0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402570
fldz
cmp dword [esi + 0x944], 3
je 0x4c8d21
fcomp qword [esi + 0x508]
fnstsw ax
test ah, 5
jp 0x4c8d23
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 9
push 8
lea eax, [ebp + 0x23c]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4c8a36
mov ecx, 0x2c
mov word [ebp + 0x23c], cx
fldz
fcomp qword [esi + 0x3c8]
fnstsw ax
test ah, 5
jp 0x4c8a4d
fld qword [esi + 0x3c8]
jmp 0x4c8a53
fild qword [esi + 0x3f8]
fld qword [esi + 0x508]
fld qword [0x67f628]
fmul st(1), st(0)
fxch st(1)
fdivrp st(2)
fld qword [0x682ff0]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x4c8ac5
fld st(1)
call fcn.0061f560
mov edi, eax
mov dword [ebp - 0x24], edi
fild dword [ebp - 0x24]
fsubp st(2)
fmulp st(1)
call fcn.0061f560
push eax
lea edx, [ebp + 0x23c]
push edx
push edi
push 0x682ff8
lea eax, [ebp - 0x18]
push eax
call fcn.00402f70
mov ecx, dword [0x75ad10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
push edx
call fcn.0045a2d0
add esp, 0x28
jmp 0x4c8ac9
fstp st(1)
fstp st(0)
mov eax, dword [esi + 0x510]
mov dword [ebp - 0x24], eax
cmp eax, 0xa
jle 0x4c8b53
mov ecx, dword [esi + 0x4f8]
mov dword [ebp - 0x2c], ecx
mov eax, dword [esi + 0x4fc]
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x4c8b53
jg 0x4c8af3
test ecx, ecx
jbe 0x4c8b53
fld qword [esi + 0x3c8]
fdiv qword [esi + 0x508]
fsub qword [0x67f668]
fild qword [ebp - 0x2c]
fmulp st(1)
fidiv dword [ebp - 0x24]
call fcn.0061f596
mov edi, vtable.StringConvertor.0
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x18]
push ecx
push edx
push eax
lea ecx, [ebp - 0x30]
call fcn.0043f320
mov edx, dword [0x75ad10]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 5
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
push eax
call fcn.0045a2d0
add esp, 0x14
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402570
mov ebx, dword [ebp - 0x1c]
jmp 0x4c8d2a
mov ecx, edi
or ecx, eax
je 0x4c8b71
mov ebx, eax
jmp 0x4c8b7d
mov edi, dword [esi + 0x110]
mov ebx, dword [esi + 0x114]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], vtable.StringConvertor.0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x18]
push edx
push ebx
push edi
lea ecx, [ebp - 0x24]
call fcn.0043f140
mov eax, dword [0x75ad10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 3
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.0045a2d0
add esp, 0x14
cmp dword [esi + 0x944], 3
je 0x4c8d05
push 8
lea edx, [ebp + 0x234]
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4c8bfa
mov eax, 0x2c
mov word [ebp + 0x234], ax
mov ecx, dword [esi + 0x4f8]
mov dword [ebp - 0x2c], ecx
mov eax, dword [esi + 0x4fc]
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x4c8c84
jg 0x4c8c16
test ecx, ecx
jbe 0x4c8c84
fild qword [ebp - 0x2c]
fld qword [0x67f628]
fmul st(1), st(0)
fild qword [ebp - 0x34]
fdivp st(2)
fxch st(1)
fstp dword [ebp - 0x28]
fld dword [ebp - 0x28]
fcom qword [0x682ff0]
fnstsw ax
test ah, 5
jp 0x4c8c80
fld st(0)
call fcn.0061f560
mov dword [ebp - 0x30], eax
fisub dword [ebp - 0x30]
fmulp st(1)
call fcn.0061f560
push eax
lea ecx, [ebp + 0x234]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0x682ff8
lea eax, [ebp - 0x18]
push eax
call fcn.00402f70
add esp, 0x14
mov ecx, dword [ebp - 0x18]
push ecx
push 4
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.005fd6cb
jmp 0x4c8c84
fstp st(0)
fstp st(0)
cmp dword [esi + 0x510], 0xa
jle 0x4c8d05
cmp ebx, dword [esi + 0x4fc]
jl 0x4c8d05
jg 0x4c8c9f
cmp edi, dword [esi + 0x4f8]
jb 0x4c8d05
mov eax, edi
or eax, ebx
je 0x4c8d05
mov dword [ebp - 0x28], vtable.StringConvertor.0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
push ecx
sub edi, dword [esi + 0x4f8]
sbb ebx, dword [esi + 0x4fc]
mov eax, dword [esi + 0x510]
cdq
push edx
push eax
push ebx
push edi
call fcn.006212e0
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.0043f320
mov edx, dword [0x75ad10]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 5
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x20]
push eax
call fcn.0045a2d0
add esp, 0x14
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], vtable.StringConvertor.0
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], vtable.StringConvertor.0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402570
mov ebx, dword [ebp - 0x1c]
jmp 0x4c8d2a
fstp st(0)
mov ebx, dword [ebp - 0x1c]
jmp 0x4c8d2a
fstp st(0)
cmp dword [esi + 0x4fc], 0
jg 0x4c8d8f
jl 0x4c8d3e
cmp dword [esi + 0x4f8], 0
ja 0x4c8d8f
mov eax, dword [esi + 0xabc]
cmp eax, 0x7565
jne 0x4c8d65
mov ecx, dword [0x75ad10]
push ecx
mov edx, dword [0x75c22c]
push edx
push 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebx + 0x20]
push ecx
jmp 0x4c8d87
cmp eax, 0x7540
je 0x4c8d8f
test eax, eax
je 0x4c8d8f
mov edx, dword [0x75ad10]
push edx
mov eax, dword [0x75c234]
push eax
push 4
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebx + 0x20]
push edx
call fcn.0045a2d0
add esp, 0x14
lea edx, [esi + 0x64]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c8d97
sub eax, edi
je 0x4c8db0
push edx
push 7
mov eax, dword [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.005fd6cb
lea edx, [esi + 0x94]
mov eax, edx
lea edi, [eax + 1]
jmp 0x4c8dc0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c8dc0
sub eax, edi
je 0x4c8dd9
push edx
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.005fd6cb
cmp dword [esi + 0x5c], 0
je 0x4c8e90
lea edx, [esi + 0x54]
push edx
lea ecx, [ebp + 0x228]
call fcn.004212d0
mov byte [ebp - 4], 0xb
cmp dword [0x75abdc], 0
je 0x4c8e2a
mov eax, dword [0x75ad64]
test eax, eax
mov ecx, eax
jne 0x4c8e0f
mov ecx, 0x75ad68
mov eax, dword [0x75accc]
test eax, eax
jne 0x4c8e1d
mov eax, 0x75acd0
push ecx
push eax
lea ecx, [ebp + 0x228]
call fcn.0043bee0
cmp dword [0x75abe0], 0
je 0x4c8e5e
mov eax, dword [0x75ad7c]
test eax, eax
mov ecx, eax
jne 0x4c8e43
mov ecx, 0x75ad80
mov eax, dword [0x75ad70]
test eax, eax
jne 0x4c8e51
mov eax, 0x75ad74
push ecx
push eax
lea ecx, [ebp + 0x228]
call fcn.0043bee0
mov eax, dword [ebp + 0x228]
test eax, eax
jne 0x4c8e6e
lea eax, [ebp + 0x22c]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 9
mov ecx, dword [ebx + 0x20]
push ecx
call fcn.004530d0
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x228]
call fcn.00401210
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4c8ea5
push eax
push 0xa
mov edx, dword [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.005fd6cb
mov edx, dword [esi + 0x138]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c8eb0
sub eax, edi
je 0x4c8efe
cmp dword [esi + 0x130], 0
jne 0x4c8ed4
lea eax, [esi + 0x128]
push eax
push edx
call fcn.004c7bf0
add esp, 8
cmp dword [esi + 0x128], 0
je 0x4c8ee5
mov eax, dword [esi + 0x128]
jmp 0x4c8eeb
lea eax, [esi + 0x12c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0xb
mov edx, dword [ebx + 0x20]
push edx
call fcn.004530d0
add esp, 0x10
cmp dword [esi + 0x944], 3
jne 0x4c8f26
mov eax, dword [0x75ad10]
push eax
mov ecx, dword [0x75befc]
push ecx
push 4
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebx + 0x20]
push eax
call fcn.0045a2d0
add esp, 0x14
cmp byte [ebp + 0x254], 0
je 0x4c8f57
cmp dword [ebp - 0x14], 0
jl 0x4c8f57
push 8
call fcn.005f1588
add esp, 4
mov dword [eax], esi
mov dword [eax + 4], ebx
push 0
push 0
push 0
push 0xfffffffffffffffe
push eax
push 0x4c8260
call fcn.005fcc94
mov byte [esi + 0xae8], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x21c]
call fcn.00401210
mov eax, dword [ebp - 0x14]
wait
jmp 0x4c8faa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.0061d2ff
add ebp, 0x248
mov esp, ebp
pop ebp
ret 0xc