Function at 0x4d9f50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x60], 0
je 0x4d9f6f
mov eax, dword [ebp - 0x60]
sub eax, 0x3e0
mov dword [ebp - 0x64], eax
jmp 0x4d9f76
mov dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0x74], 0
jne 0x4d9fb9
push str.weather_setcity_province
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x4d9fa9
mov eax, dword [ebp - 0x68]
sub eax, 8
mov dword [ebp - 0x6c], eax
jmp 0x4d9fb0
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x6c]
mov dword [ecx + 0x74], edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x74]
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x74]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
cmp eax, 1
jle 0x4da0fe
push 0
push 0
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x74]
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x74]
add ecx, 0x368
mov edx, dword [edx + 0x368]
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x24]
call fcn.0040ee90
push 0
push 0
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x74]
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x74]
add ecx, 0x368
mov edx, dword [edx + 0x368]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x60]
cmp dword [ecx + 0x78], 0
jne 0x4da05e
push str.weather_setcity_city
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x4da04e
mov edx, dword [ebp - 0x70]
sub edx, 8
mov dword [ebp - 0x74], edx
jmp 0x4da055
mov dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x74]
mov dword [eax + 0x78], ecx
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0x78], 0
je 0x4da089
push 0
push 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x78]
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x78]
add eax, 0x368
mov edx, dword [ecx + 0x368]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x60]
cmp dword [ecx + 0x7c], 0
jne 0x4da0c6
push str.weather_setcity_region
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.00509af5
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x4da0b6
mov edx, dword [ebp - 0x78]
sub edx, 8
mov dword [ebp - 0x7c], edx
jmp 0x4da0bd
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0x7c], ecx
mov edx, dword [ebp - 0x60]
cmp dword [edx + 0x7c], 0
je 0x4da0f1
push 0
push 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x7c]
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x7c]
add eax, 0x368
mov edx, dword [ecx + 0x368]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x24]
call fcn.0040f740
jmp 0x4da444
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 0x4da1fd
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 - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 0x28]
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 - 0x28]
push eax
call fcn.0053e160
add esp, 0xc
cmp dword [0x5c2478], 0
jne 0x4da1b9
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 - 0x28]
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 - 0x28]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
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 - 0x60]
mov ecx, dword [eax + 0x74]
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x74]
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 - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4da260
mov ecx, dword [ebp - 0x48]
call fcn.004ae600
mov dword [ebp - 0x80], eax
jmp 0x4da267
mov dword [ebp - 0x80], 0
mov ecx, dword [ebp - 0x80]
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 - 0x60]
mov eax, dword [edx + 0x74]
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx + 0x74]
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
push 0x596a5c
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x74]
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x74]
add ecx, 8
mov edx, dword [edx + 8]
mov eax, dword [edx + 0x3c]
call eax
mov dword [ebp - 0x2c], 0
jmp 0x4da2d6
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 4]
jge 0x4da41b
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x4c]
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 - 0x30]
call fcn.0041c8a0
lea ecx, [ebp - 0x50]
call fcn.00455310
lea ecx, [ebp - 0x4c]
call fcn.004b2e40
push str.Province
lea eax, [ebp - 0x30]
push eax
call fcn.0041cac0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4da40e
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x3c]
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 - 0x3c]
push edx
call fcn.004eaae0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [0x5c2478]
call fcn.0046b3d0
push 0x280
call fcn.0053e4e7
add esp, 4
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x4da3ac
mov ecx, dword [ebp - 0x5c]
call fcn.004ae600
mov dword [ebp - 0x84], eax
jmp 0x4da3b6
mov dword [ebp - 0x84], 0
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x34], ecx
push 0x1c
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 0xf8]
call edx
lea ecx, [ebp - 0x38]
call fcn.0041cb20
push eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x74]
mov ecx, dword [ebp - 0x60]
mov ecx, dword [ecx + 0x74]
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
lea ecx, [ebp - 0x38]
call fcn.0040f740
lea ecx, [ebp - 0x3c]
call fcn.004b2e40
lea ecx, [ebp - 0x30]
call fcn.0040f740
jmp 0x4da2cd
push 0
push 0
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x74]
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0x74]
add ecx, 0x368
mov edx, dword [edx + 0x368]
mov eax, dword [edx + 8]
call eax
lea ecx, [ebp - 0x18]
call fcn.004c3260
mov esp, ebp
pop ebp
ret