Function at 0x4d96f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x78], 0
je 0x4d970f
mov eax, dword [ebp - 0x78]
sub eax, 0x3e0
mov dword [ebp - 0x7c], eax
jmp 0x4d9716
mov dword [ebp - 0x7c], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x78]
cmp dword [edx + 0x58], 0
jne 0x4d9762
push str.weather_setcity_province
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x4d974c
mov eax, dword [ebp - 0x80]
sub eax, 8
mov dword [ebp - 0x84], eax
jmp 0x4d9756
mov dword [ebp - 0x84], 0
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x84]
mov dword [ecx + 0x58], edx
push 0
push 0
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x58]
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x58]
add eax, 0x368
mov edx, dword [ecx + 0x368]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x24]
call fcn.0040ee90
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x58]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x58]
mov edx, dword [edx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 1
jle 0x4d9b43
mov ecx, dword [ebp - 0x78]
add ecx, 0x64
call fcn.0041cc40
movzx ecx, al
test ecx, ecx
jne 0x4d985f
mov dword [ebp - 0x28], 0
jmp 0x4d97d0
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x58]
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x58]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
cmp dword [ebp - 0x28], eax
jge 0x4d985d
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x58]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x58]
mov edx, dword [eax]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x38]
call eax
push eax
lea ecx, [ebp - 0x24]
call fcn.0041cec0
mov ecx, dword [ebp - 0x78]
add ecx, 0x64
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004a6090
add esp, 8
movzx eax, al
test eax, eax
je 0x4d9858
push 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x58]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x58]
add ecx, 0x368
mov edx, dword [eax + 0x368]
mov eax, dword [edx + 8]
call eax
jmp 0x4d985d
jmp 0x4d97c7
jmp 0x4d9880
push 0
push 0
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x58]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x58]
add ecx, 0x368
mov edx, dword [edx + 0x368]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x5c], 0
jne 0x4d98cf
push str.weather_setcity_city
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x4d98b9
mov edx, dword [ebp - 0x88]
sub edx, 8
mov dword [ebp - 0x8c], edx
jmp 0x4d98c3
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x8c]
mov dword [eax + 0x5c], ecx
mov edx, dword [ebp - 0x78]
cmp dword [edx + 0x5c], 0
je 0x4d99b1
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x5c]
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x5c]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
cmp eax, 1
jle 0x4d99b1
mov ecx, dword [ebp - 0x78]
add ecx, 0x68
call fcn.0041cc40
movzx ecx, al
test ecx, ecx
jne 0x4d99af
mov dword [ebp - 0x30], 0
jmp 0x4d9922
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x5c]
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x5c]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
cmp dword [ebp - 0x30], eax
jge 0x4d99af
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x5c]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x5c]
mov edx, dword [eax]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x38]
call eax
push eax
lea ecx, [ebp - 0x24]
call fcn.0041cec0
mov ecx, dword [ebp - 0x78]
add ecx, 0x68
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004a6090
add esp, 8
movzx eax, al
test eax, eax
je 0x4d99aa
push 0
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x5c]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x5c]
add ecx, 0x368
mov edx, dword [eax + 0x368]
mov eax, dword [edx + 8]
call eax
jmp 0x4d99af
jmp 0x4d9919
jmp 0x4d99db
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x5c], 0
je 0x4d99db
push 0
push 0
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x5c]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x5c]
add ecx, 0x368
mov edx, dword [eax + 0x368]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x60], 0
jne 0x4d9a2a
push str.weather_setcity_region
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x4d9a14
mov edx, dword [ebp - 0x90]
sub edx, 8
mov dword [ebp - 0x94], edx
jmp 0x4d9a1e
mov dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x94]
mov dword [eax + 0x60], ecx
mov edx, dword [ebp - 0x78]
cmp dword [edx + 0x60], 0
je 0x4d9b0c
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x60]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
cmp eax, 1
jle 0x4d9b0c
mov ecx, dword [ebp - 0x78]
add ecx, 0x6c
call fcn.0041cc40
movzx ecx, al
test ecx, ecx
jne 0x4d9b0a
mov dword [ebp - 0x38], 0
jmp 0x4d9a7d
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x60]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
cmp dword [ebp - 0x38], eax
jge 0x4d9b0a
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x60]
mov edx, dword [eax]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x38]
call eax
push eax
lea ecx, [ebp - 0x24]
call fcn.0041cec0
mov ecx, dword [ebp - 0x78]
add ecx, 0x6c
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004a6090
add esp, 8
movzx eax, al
test eax, eax
je 0x4d9b05
push 0
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x60]
add ecx, 0x368
mov edx, dword [eax + 0x368]
mov eax, dword [edx + 8]
call eax
jmp 0x4d9b0a
jmp 0x4d9a74
jmp 0x4d9b36
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x60], 0
je 0x4d9b36
push 0
push 0
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x60]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x60]
add ecx, 0x368
mov edx, dword [eax + 0x368]
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x24]
call fcn.0040f740
jmp 0x4d9f3d
push 0x5873c0
push 0xd2
push 0
call dword [0x5772dc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [0x5772d0]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [0x577424]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
call dword [0x5772d8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4d9c42
mov eax, dword [ebp - 0x10]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f4318
add esp, 4
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 0x40]
push eax
call fcn.0053ef70
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.0053e160
add esp, 0xc
cmp dword [0x5c2478], 0
jne 0x4d9bfe
push 0
push 0
push 0x52e
mov ecx, dword [0x5c271c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov edx, dword [ebp - 0x40]
add edx, 2
push edx
mov ecx, dword [0x5c2478]
call fcn.004665a0
push str.CityList
mov ecx, dword [0x5c2478]
add ecx, 4
call fcn.0041cec0
mov ecx, dword [0x5c2478]
call fcn.0046adf0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0053e96b
add esp, 4
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [0x5c2478]
add ecx, 0xc
call fcn.004b3040
mov ecx, eax
call fcn.004c30b0
lea ecx, [ebp - 0x18]
call fcn.004c3280
mov ecx, eax
call fcn.004c3170
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x58]
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x58]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x20]
call eax
push 0x280
call fcn.0053e4e7
add esp, 4
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x4d9ca8
mov ecx, dword [ebp - 0x60]
call fcn.004ae600
mov dword [ebp - 0x98], eax
jmp 0x4d9cb2
mov dword [ebp - 0x98], 0
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x20], ecx
push 0x1c
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0xf8]
call edx
push 0x596a5c
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x58]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x58]
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
push 0x596a5c
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x58]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x58]
add ecx, 8
mov edx, dword [edx + 8]
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 0x44], 0
jmp 0x4d9d24
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 4]
jge 0x4d9ea9
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x18]
call fcn.004c3280
mov ecx, eax
call fcn.004c3110
mov ecx, eax
call fcn.004c8850
mov ecx, eax
call fcn.004cb900
mov ecx, eax
call fcn.00455330
push eax
lea ecx, [ebp - 0x48]
call fcn.0041c8a0
lea ecx, [ebp - 0x68]
call fcn.00455310
lea ecx, [ebp - 0x64]
call fcn.004b2e40
push str.Province
lea eax, [ebp - 0x48]
push eax
call fcn.0041cac0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4d9e9c
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x18]
call fcn.004c3280
mov ecx, eax
call fcn.004c3110
push ecx
mov ecx, esp
push str.Name
call fcn.0041c8a0
push ecx
mov ecx, esp
lea edx, [ebp - 0x54]
push edx
call fcn.004eaae0
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [0x5c2478]
call fcn.0046b3d0
push 0x280
call fcn.0053e4e7
add esp, 4
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x4d9dfa
mov ecx, dword [ebp - 0x74]
call fcn.004ae600
mov dword [ebp - 0x9c], eax
jmp 0x4d9e04
mov dword [ebp - 0x9c], 0
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x4c], ecx
push 0x1c
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [eax + 0xf8]
call edx
lea ecx, [ebp - 0x50]
call fcn.0041cb20
push eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x58]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x58]
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x78]
add edx, 0x64
push edx
call fcn.004a6090
add esp, 8
movzx eax, al
test eax, eax
je 0x4d9e8c
push 0
mov ecx, dword [ebp - 0x44]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x58]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0x58]
add ecx, 0x368
mov edx, dword [eax + 0x368]
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x50]
call fcn.0040f740
lea ecx, [ebp - 0x54]
call fcn.004b2e40
lea ecx, [ebp - 0x48]
call fcn.0040f740
jmp 0x4d9d1b
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x58]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x58]
add ecx, 0x368
mov edx, dword [edx + 0x368]
mov eax, dword [edx + 4]
call eax
test eax, eax
jg 0x4d9f2d
push 0
push 0
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x58]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x58]
add ecx, 0x368
mov edx, dword [edx + 0x368]
mov eax, dword [edx + 8]
call eax
push 0
push 0
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x5c]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x5c]
add ecx, 0x368
mov edx, dword [edx + 0x368]
mov eax, dword [edx + 8]
call eax
push 0
push 0
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x60]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x60]
add ecx, 0x368
mov edx, dword [edx + 0x368]
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x18]
call fcn.004c3260
lea ecx, [ebp - 0x24]
call fcn.0040f740
mov esp, ebp
pop ebp
ret