Function at 0x4c9620
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x248]
sub esp, 0x248
push 0xffffffffffffffff
push 0x651d6c
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x758898]
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 + 0x35a], 0
jne 0x4c981d
cmp byte [ebp + 0x258], 0
je 0x4c9838
mov ecx, dword [ebx + 0xbc]
call fcn.00454200
mov edi, eax
test edi, edi
je 0x4c9838
push edi
mov ecx, dword [ebx + 0xbc]
call fcn.004541e0
mov ecx, dword [ebx + 0xbc]
mov edx, dword [ecx + 0x5c]
cmp edi, edx
je 0x4c976c
cmp edi, dword [ecx + 0x54]
je 0x4c976c
mov ebx, dword [ecx + 0x58]
cmp edi, ebx
je 0x4c976c
cmp eax, edx
je 0x4c976c
cmp eax, dword [ecx + 0x54]
je 0x4c976c
cmp eax, ebx
je 0x4c976c
mov edx, dword [ecx + 0x60]
cmp edi, edx
jne 0x4c970c
cmp dword [esi + 0xae0], 0
jg 0x4c9835
mov byte [esi + 0xaf8], 1
or eax, 0xffffffff
wait
jmp 0x4ca03e
cmp eax, edx
jne 0x4c9732
push edi
call fcn.006007b9
cmp dword [esi + 0xae0], eax
je 0x4c9835
mov byte [esi + 0xaf8], 1
or eax, 0xffffffff
wait
jmp 0x4ca03e
mov edx, dword [ecx + 0x64]
cmp edi, edx
jne 0x4c9742
cmp dword [esi + 0x4fc], 0
jmp 0x4c96f6
cmp eax, edx
jne 0x4c9835
push edi
call fcn.006007b9
cmp dword [esi + 0x4fc], eax
je 0x4c9835
mov byte [esi + 0xaf8], 1
or eax, 0xffffffff
wait
jmp 0x4ca03e
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.004cb6b0
mov byte [ebp - 0x1d], al
push edi
mov ecx, dword [ebx + 0xbc]
call fcn.004ca990
mov ebx, eax
mov cl, byte [ebp - 0x1d]
test cl, cl
je 0x4c97d4
push edi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 0xbc]
call fcn.006007b9
xor ecx, ecx
cmp dword [esi + 0x334], eax
sete cl
mov eax, ecx
mov cl, byte [ebp - 0x1d]
jmp 0x4c97d6
xor eax, eax
test ebx, ebx
je 0x4c9826
mov edx, 3
cmp ebx, edx
je 0x4c9803
cmp ebx, 1
jne 0x4c97f2
cmp dword [esi + 0x954], edx
je 0x4c9807
jmp 0x4c97ff
cmp ebx, 2
jne 0x4c9807
cmp dword [esi + 0x954], edx
jne 0x4c9807
test cl, cl
je 0x4c9826
test eax, eax
jne 0x4c9826
mov byte [esi + 0xaf8], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x228]
call fcn.00401210
or eax, 0xffffffff
wait
jmp 0x4ca03e
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 0x4c9857
cmp dword [ecx + 0x30], edi
je 0x4c9857
push esi
call fcn.0045ea70
test eax, eax
je 0x4c96fc
mov dword [ebp - 0x6c], edi
push 0x30
push edi
lea edx, [ebp - 0x68]
push edx
call fcn.00620920
add esp, 0xc
mov dword [ebp - 0x6c], 5
mov ecx, ebx
call fcn.00454060
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edi
mov eax, dword [esi + 0x4f8]
mov dword [ebp - 0x4c], eax
mov dword [ebp + 0x21c], edi
mov dword [ebp + 0x224], edi
xor ecx, ecx
mov word [ebp + 0x220], cx
mov byte [ebp - 4], 2
lea edx, [ebp + 0x21c]
push edx
mov ecx, esi
call fcn.005b8b30
mov eax, dword [ebp + 0x21c]
cmp eax, edi
je 0x4c98bc
mov dword [ebp - 0x58], eax
jmp 0x4c98c5
lea eax, [ebp + 0x220]
mov dword [ebp - 0x58], eax
lea edx, [eax + 2]
jmp 0x4c98d0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4c98d0
sub eax, edx
sar eax, 1
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edi
lea ecx, [ebp - 0x6c]
push ecx
push edi
push 0x104d
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x60]
cmp eax, edi
je 0x4c997e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c9907
sub eax, edx
je 0x4c997e
mov dword [ebp + 0x210], edi
mov dword [ebp + 0x218], edi
xor eax, eax
mov word [ebp + 0x214], ax
mov byte [ebp - 4], 3
movzx ecx, byte [esi + 0x362]
neg ecx
sbb ecx, ecx
and ecx, 0xfde9
push ecx
mov edx, dword [esi + 0x60]
push edx
lea ecx, [ebp + 0x210]
call fcn.00401990
mov eax, dword [ebp + 0x210]
cmp eax, edi
jne 0x4c995c
lea eax, [ebp + 0x214]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 8
mov ecx, dword [ebx + 0x20]
push ecx
call fcn.00453660
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x210]
call fcn.00401210
mov edi, dword [esi + 0x500]
mov eax, dword [esi + 0x504]
mov edx, edi
or edx, eax
jne 0x4c9bfd
mov ecx, dword [esi + 0x110]
or ecx, dword [esi + 0x114]
jne 0x4c9bfd
mov eax, dword [esi + 0x44]
cmp eax, 4
je 0x4c99bf
cmp eax, 5
je 0x4c99bf
cmp dword [esi + 0x354], ecx
je 0x4c9dc0
fldz
fcom qword [esi + 0x3d8]
fnstsw ax
test ah, 5
jnp 0x4c99ea
cmp dword [esi + 0x40c], 0
jl 0x4c9dbe
jg 0x4c99ea
cmp dword [esi + 0x408], 0
jbe 0x4c9dbe
fcom qword [esi + 0x3d8]
fnstsw ax
test ah, 5
jp 0x4c9a08
fld qword [esi + 0x3d8]
call fcn.006224d6
mov edi, eax
mov ebx, edx
jmp 0x4c9a14
mov edi, dword [esi + 0x408]
mov ebx, dword [esi + 0x40c]
test ebx, ebx
jl 0x4c9a7d
jg 0x4c9a1e
test edi, edi
jbe 0x4c9a7d
fstp st(0)
lea ecx, [ebp - 0x18]
call fcn.00402510
mov byte [ebp - 4], 7
mov dword [ebp - 0x38], vtable.StringConvertor.0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x18]
push edx
push ebx
push edi
lea ecx, [ebp - 0x38]
call fcn.0043f430
mov eax, dword [0x75dd28]
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.0045ab80
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.00402580
fldz
cmp dword [esi + 0x954], 3
je 0x4c9db7
fcomp qword [esi + 0x518]
fnstsw ax
test ah, 5
jp 0x4c9db9
lea ecx, [ebp - 0x18]
call fcn.00402510
mov byte [ebp - 4], 9
push 8
lea edx, [ebp + 0x23c]
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4c9acd
mov eax, 0x2c
mov word [ebp + 0x23c], ax
fldz
fcomp qword [esi + 0x3d8]
fnstsw ax
test ah, 5
jp 0x4c9ae4
fld qword [esi + 0x3d8]
jmp 0x4c9aea
fild qword [esi + 0x408]
fld qword [esi + 0x518]
fld qword [0x682888]
fmul st(1), st(0)
fxch st(1)
fdivrp st(2)
fld qword [0x6862f0]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x4c9b5b
fld st(1)
call fcn.006224a0
mov edi, eax
mov dword [ebp - 0x24], edi
fild dword [ebp - 0x24]
fsubp st(2)
fmulp st(1)
call fcn.006224a0
push eax
lea ecx, [ebp + 0x23c]
push ecx
push edi
push 0x6862f8
lea edx, [ebp - 0x18]
push edx
call fcn.00402f80
mov eax, dword [0x75dd28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 4
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.0045ab80
add esp, 0x28
jmp 0x4c9b5f
fstp st(1)
fstp st(0)
mov eax, dword [esi + 0x520]
mov dword [ebp - 0x24], eax
cmp eax, 0xa
jle 0x4c9be9
mov ecx, dword [esi + 0x508]
mov dword [ebp - 0x2c], ecx
mov eax, dword [esi + 0x50c]
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x4c9be9
jg 0x4c9b89
test ecx, ecx
jbe 0x4c9be9
fld qword [esi + 0x3d8]
fdiv qword [esi + 0x518]
fsub qword [0x6828c8]
fild qword [ebp - 0x2c]
fmulp st(1)
fidiv dword [ebp - 0x24]
call fcn.006224d6
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.0043f430
mov edx, dword [0x75dd28]
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.0045ab80
add esp, 0x14
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402580
mov ebx, dword [ebp - 0x1c]
jmp 0x4c9dc0
mov ecx, edi
or ecx, eax
je 0x4c9c07
mov ebx, eax
jmp 0x4c9c13
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.00402510
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.0043f250
mov eax, dword [0x75dd28]
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.0045ab80
add esp, 0x14
cmp dword [esi + 0x954], 3
je 0x4c9d9b
push 8
lea edx, [ebp + 0x234]
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4c9c90
mov eax, 0x2c
mov word [ebp + 0x234], ax
mov ecx, dword [esi + 0x508]
mov dword [ebp - 0x2c], ecx
mov eax, dword [esi + 0x50c]
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x4c9d1a
jg 0x4c9cac
test ecx, ecx
jbe 0x4c9d1a
fild qword [ebp - 0x2c]
fld qword [0x682888]
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 [0x6862f0]
fnstsw ax
test ah, 5
jp 0x4c9d16
fld st(0)
call fcn.006224a0
mov dword [ebp - 0x30], eax
fisub dword [ebp - 0x30]
fmulp st(1)
call fcn.006224a0
push eax
lea ecx, [ebp + 0x234]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0x6862f8
lea eax, [ebp - 0x18]
push eax
call fcn.00402f80
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.00600656
jmp 0x4c9d1a
fstp st(0)
fstp st(0)
cmp dword [esi + 0x520], 0xa
jle 0x4c9d9b
cmp ebx, dword [esi + 0x50c]
jl 0x4c9d9b
jg 0x4c9d35
cmp edi, dword [esi + 0x508]
jb 0x4c9d9b
mov eax, edi
or eax, ebx
je 0x4c9d9b
mov dword [ebp - 0x28], vtable.StringConvertor.0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
push ecx
sub edi, dword [esi + 0x508]
sbb ebx, dword [esi + 0x50c]
mov eax, dword [esi + 0x520]
cdq
push edx
push eax
push ebx
push edi
call fcn.00624220
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.0043f430
mov edx, dword [0x75dd28]
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.0045ab80
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.00402580
mov ebx, dword [ebp - 0x1c]
jmp 0x4c9dc0
fstp st(0)
mov ebx, dword [ebp - 0x1c]
jmp 0x4c9dc0
fstp st(0)
cmp dword [esi + 0x50c], 0
jg 0x4c9e25
jl 0x4c9dd4
cmp dword [esi + 0x508], 0
ja 0x4c9e25
mov eax, dword [esi + 0xacc]
cmp eax, 0x7565
jne 0x4c9dfb
mov ecx, dword [0x75dd28]
push ecx
mov edx, dword [0x75f26c]
push edx
push 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebx + 0x20]
push ecx
jmp 0x4c9e1d
cmp eax, 0x7540
je 0x4c9e25
test eax, eax
je 0x4c9e25
mov edx, dword [0x75dd28]
push edx
mov eax, dword [0x75f274]
push eax
push 4
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebx + 0x20]
push edx
call fcn.0045ab80
add esp, 0x14
lea edx, [esi + 0x64]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c9e30
sub eax, edi
je 0x4c9e49
push edx
push 7
mov eax, dword [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.00600656
lea edx, [esi + 0x94]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c9e54
sub eax, edi
je 0x4c9e6d
push edx
push 1
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.00600656
cmp dword [esi + 0x5c], 0
je 0x4c9f24
lea edx, [esi + 0x54]
push edx
lea ecx, [ebp + 0x228]
call fcn.00420df0
mov byte [ebp - 4], 0xb
cmp dword [0x75dbe8], 0
je 0x4c9ebe
mov eax, dword [0x75dce4]
test eax, eax
mov ecx, eax
jne 0x4c9ea3
mov ecx, 0x75dce8
mov eax, dword [0x75dc94]
test eax, eax
jne 0x4c9eb1
mov eax, 0x75dc98
push ecx
push eax
lea ecx, [ebp + 0x228]
call fcn.0043bfb0
cmp dword [0x75dbec], 0
je 0x4c9ef2
mov eax, dword [0x75dd88]
test eax, eax
mov ecx, eax
jne 0x4c9ed7
mov ecx, 0x75dd8c
mov eax, dword [0x75dd7c]
test eax, eax
jne 0x4c9ee5
mov eax, 0x75dd80
push ecx
push eax
lea ecx, [ebp + 0x228]
call fcn.0043bfb0
mov eax, dword [ebp + 0x228]
test eax, eax
jne 0x4c9f02
lea eax, [ebp + 0x22c]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 9
mov ecx, dword [ebx + 0x20]
push ecx
call fcn.00453660
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x228]
call fcn.00401210
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4c9f39
push eax
push 0xa
mov edx, dword [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.00600656
mov edx, dword [esi + 0x138]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c9f44
sub eax, edi
je 0x4c9f92
cmp dword [esi + 0x130], 0
jne 0x4c9f68
lea eax, [esi + 0x128]
push eax
push edx
call fcn.004c8c80
add esp, 8
cmp dword [esi + 0x128], 0
je 0x4c9f79
mov eax, dword [esi + 0x128]
jmp 0x4c9f7f
lea eax, [esi + 0x12c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0xb
mov edx, dword [ebx + 0x20]
push edx
call fcn.00453660
add esp, 0x10
cmp dword [esi + 0x954], 3
jne 0x4c9fba
mov eax, dword [0x75dd28]
push eax
mov ecx, dword [0x75ef3c]
push ecx
push 4
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebx + 0x20]
push eax
call fcn.0045ab80
add esp, 0x14
cmp byte [ebp + 0x254], 0
je 0x4c9feb
cmp dword [ebp - 0x14], 0
jl 0x4c9feb
push 8
call fcn.005f44e8
add esp, 4
mov dword [eax], esi
mov dword [eax + 4], ebx
push 0
push 0
push 0
push 0xfffffffffffffffe
push eax
push 0x4c92f0
call fcn.005ffc0d
mov byte [esi + 0xaf8], 1
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x21c]
call fcn.00401210
mov eax, dword [ebp - 0x14]
wait
jmp 0x4ca03e
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.0062023e
add ebp, 0x248
mov esp, ebp
pop ebp
ret 0xc