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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x78], 0
je 0x4b34df
mov eax, dword [ebp - 0x78]
sub eax, 0x3e0
mov dword [ebp - 0x7c], eax
jmp 0x4b34e6
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 0x4b3532
push str.weather_setcity_province
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.004dd71b
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x4b351c
mov eax, dword [ebp - 0x80]
sub eax, 8
mov dword [ebp - 0x84], eax
jmp 0x4b3526
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 0x4b3913
mov ecx, dword [ebp - 0x78]
add ecx, 0x64
call fcn.0041cc40
movzx ecx, al
test ecx, ecx
jne 0x4b362f
mov dword [ebp - 0x28], 0
jmp 0x4b35a0
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 0x4b362d
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.0047e690
add esp, 8
movzx eax, al
test eax, eax
je 0x4b3628
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 0x4b362d
jmp 0x4b3597
jmp 0x4b3650
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 0x4b369f
push str.weather_setcity_city
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.004dd71b
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x4b3689
mov edx, dword [ebp - 0x88]
sub edx, 8
mov dword [ebp - 0x8c], edx
jmp 0x4b3693
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 0x4b3781
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 0x4b3781
mov ecx, dword [ebp - 0x78]
add ecx, 0x68
call fcn.0041cc40
movzx ecx, al
test ecx, ecx
jne 0x4b377f
mov dword [ebp - 0x30], 0
jmp 0x4b36f2
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 0x4b377f
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.0047e690
add esp, 8
movzx eax, al
test eax, eax
je 0x4b377a
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 0x4b377f
jmp 0x4b36e9
jmp 0x4b37ab
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x5c], 0
je 0x4b37ab
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 0x4b37fa
push str.weather_setcity_region
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.004dd71b
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
je 0x4b37e4
mov edx, dword [ebp - 0x90]
sub edx, 8
mov dword [ebp - 0x94], edx
jmp 0x4b37ee
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 0x4b38dc
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 0x4b38dc
mov ecx, dword [ebp - 0x78]
add ecx, 0x6c
call fcn.0041cc40
movzx ecx, al
test ecx, ecx
jne 0x4b38da
mov dword [ebp - 0x38], 0
jmp 0x4b384d
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 0x4b38da
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.0047e690
add esp, 8
movzx eax, al
test eax, eax
je 0x4b38d5
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 0x4b38da
jmp 0x4b3844
jmp 0x4b3906
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x60], 0
je 0x4b3906
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 0x4b3d0d
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 0x4b3a12
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 - 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.00512af0
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.00511ce0
add esp, 0xc
cmp dword [0x591054], 0
jne 0x4b39ce
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 - 0x40]
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 - 0x40]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
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 - 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.00512067
add esp, 4
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x4b3a78
mov ecx, dword [ebp - 0x60]
call fcn.00486c50
mov dword [ebp - 0x98], eax
jmp 0x4b3a82
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 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 - 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 0x56809c
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 0x4b3af4
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 4]
jge 0x4b3c79
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.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 - 0x48]
call fcn.0041c8a0
lea ecx, [ebp - 0x68]
call fcn.00431470
lea ecx, [ebp - 0x64]
call fcn.0048b4d0
push str.Province
lea eax, [ebp - 0x48]
push eax
call fcn.0041cac0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4b3c6c
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x54]
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 - 0x54]
push edx
call fcn.004bf1d0
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [0x591054]
call fcn.004473f0
push 0x280
call fcn.00512067
add esp, 4
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x4b3bca
mov ecx, dword [ebp - 0x74]
call fcn.00486c50
mov dword [ebp - 0x9c], eax
jmp 0x4b3bd4
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.0047e690
add esp, 8
movzx eax, al
test eax, eax
je 0x4b3c5c
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.0048b4d0
lea ecx, [ebp - 0x48]
call fcn.0040f740
jmp 0x4b3aeb
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 0x4b3cfd
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.0049b340
lea ecx, [ebp - 0x24]
call fcn.0040f740
mov esp, ebp
pop ebp
ret