Function at 0x4b3d20
Capabilities:
Extract resource via kernel32 functions
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x60], 0
je 0x4b3d3f
mov eax, dword [ebp - 0x60]
sub eax, 0x3e0
mov dword [ebp - 0x64], eax
jmp 0x4b3d46
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 0x4b3d89
push str.weather_setcity_province
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.004dd71b
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x4b3d79
mov eax, dword [ebp - 0x68]
sub eax, 8
mov dword [ebp - 0x6c], eax
jmp 0x4b3d80
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 0x4b3ece
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 0x4b3e2e
push str.weather_setcity_city
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.004dd71b
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x4b3e1e
mov edx, dword [ebp - 0x70]
sub edx, 8
mov dword [ebp - 0x74], edx
jmp 0x4b3e25
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 0x4b3e59
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 0x4b3e96
push str.weather_setcity_region
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.004dd71b
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x4b3e86
mov edx, dword [ebp - 0x78]
sub edx, 8
mov dword [ebp - 0x7c], edx
jmp 0x4b3e8d
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 0x4b3ec1
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 0x4b4214
push 0x558d40
push 0xd2
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4b3fcd
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.004c8580
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.00512af0
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.00511ce0
add esp, 0xc
cmp dword [0x591054], 0
jne 0x4b3f89
push 0
push 0
push 0x52e
mov ecx, dword [0x5912f8]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov edx, dword [ebp - 0x28]
add edx, 2
push edx
mov ecx, dword [0x591054]
call fcn.00442630
push str.CityList
mov ecx, dword [0x591054]
add ecx, 4
call fcn.0041cec0
mov ecx, dword [0x591054]
call fcn.00446e10
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.005124eb
add esp, 4
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [0x591054]
add ecx, 0xc
call fcn.0048b6d0
mov ecx, eax
call fcn.0049b190
lea ecx, [ebp - 0x18]
call fcn.0049b360
mov ecx, eax
call fcn.0049b250
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.00512067
add esp, 4
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4b4030
mov ecx, dword [ebp - 0x48]
call fcn.00486c50
mov dword [ebp - 0x80], eax
jmp 0x4b4037
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 0x56809c
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 0x56809c
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 0x4b40a6
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 4]
jge 0x4b41eb
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.0049b360
mov ecx, eax
call fcn.0049b1f0
mov ecx, eax
call fcn.004a0a90
mov ecx, eax
call fcn.004a5450
mov ecx, eax
call fcn.00431490
push eax
lea ecx, [ebp - 0x30]
call fcn.0041c8a0
lea ecx, [ebp - 0x50]
call fcn.00431470
lea ecx, [ebp - 0x4c]
call fcn.0048b4d0
push str.Province
lea eax, [ebp - 0x30]
push eax
call fcn.0041cac0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4b41de
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0049b360
mov ecx, eax
call fcn.0049b1f0
push ecx
mov ecx, esp
push str.Name
call fcn.0041c8a0
push ecx
mov ecx, esp
lea edx, [ebp - 0x3c]
push edx
call fcn.004bf1d0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [0x591054]
call fcn.004473f0
push 0x280
call fcn.00512067
add esp, 4
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x4b417c
mov ecx, dword [ebp - 0x5c]
call fcn.00486c50
mov dword [ebp - 0x84], eax
jmp 0x4b4186
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.0048b4d0
lea ecx, [ebp - 0x30]
call fcn.0040f740
jmp 0x4b409d
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.0049b340
mov esp, ebp
pop ebp
ret