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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4554c7
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x46a630]
xor eax, esp
mov dword [esp + 0x398], eax
push ebx
push esi
push edi
mov eax, dword [0x46a630]
xor eax, esp
push eax
lea eax, [esp + 0x3b0]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push 0xbe
push 0
mov dword [esp + 0x20], ecx
call esi
test eax, eax
jne 0x40bc6d
xor ebx, ebx
jmp 0x40bc78
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push 0xa
push 0xbe
push 0
call esi
test eax, eax
jne 0x40bc8b
xor edi, edi
jmp 0x40bc96
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
lea eax, [esp + 0x34]
push eax
call fcn.00406320
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ebx
mov esi, vtable.ysl::storage::memory_streambuf.0
mov dword [esp + 0x34], esi
mov dword [ecx], edi
mov edx, dword [esp + 0x58]
mov dword [edx], edi
mov ecx, dword [esp + 0x68]
lea eax, [edi + ebx]
sub eax, edi
mov dword [ecx], eax
mov edx, dword [esp + 0x44]
mov dword [edx], edi
mov ecx, dword [esp + 0x54]
mov dword [ecx], edi
mov edx, dword [esp + 0x64]
mov dword [edx], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov dword [esp + 0x3c0], 0
call fcn.00406150
lea edi, [esp + 0x98]
mov byte [esp + 0x3b8], 1
call fcn.0040b830
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebx, 8
push ebx
lea edx, [esp + 0x39c]
push edx
push 0x59
push 0x400
call edi
push ebx
lea eax, [esp + 0x3a4]
push eax
push 0x5a
push 0x400
call edi
lea ecx, [esp + 0x398]
push ecx
lea eax, [esp + 0x3a4]
call fcn.0040b7b0
mov byte [esp + 0x3b8], 0
mov edx, dword [esp + 0x98]
mov eax, dword [edx + 4]
lea ecx, [esp + 0xa0]
mov dword [esp + eax + 0x98], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push ecx
mov dword [esp + 0xa4], vtable.std::ios_base.0
call fcn.0044ff5a
mov dword [esp + 0x3bc], 0xffffffff
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.00406420
cmp byte [0x4708bc], 0
jne 0x40be2f
mov edx, dword [0x4708a8]
mov eax, dword [0x4708a4]
xor edi, edi
push edi
push edx
push eax
push 0x398
call fcn.00402400
cmp eax, edi
je 0x40bdd2
push 3
call fcn.004023a0
jmp 0x40bdd4
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.004027d0
cmp dword [eax + 0x18], ebx
jb 0x40bdea
mov eax, dword [eax + 4]
jmp 0x40bded
add eax, 4
push eax
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp dword [esp + 0x30], ebx
mov esi, eax
jb 0x40be0a
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041902f
add esp, 4
cmp esi, edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
je 0x40c01f
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40c01f
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [esp + 0x14]
call fcn.00423d67
xor edi, edi
push edi
call fcn.004251e8
call fcn.0040a5c0
call fcn.00418be0
push edi
call fcn.00418f40
add esp, 8
test al, al
jne 0x40bf40
mov eax, dword [0x4708a8]
mov ecx, dword [0x4708a4]
push edi
push eax
push ecx
push 0x398
call fcn.00402400
cmp eax, edi
je 0x40be86
push 3
call fcn.004023a0
jmp 0x40be88
xor eax, eax
lea edx, [esp + 0x7c]
push edx
mov ecx, eax
call fcn.004027d0
mov esi, eax
mov dword [esp + 0x3b8], 2
mov eax, dword [0x4708a8]
mov ecx, dword [0x4708a4]
push edi
push eax
push ecx
push 0x398
call fcn.00402400
cmp eax, edi
je 0x40bec5
push ebx
call fcn.004023a0
jmp 0x40bec7
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov ecx, eax
call fcn.004027d0
cmp dword [esi + 0x18], ebx
jb 0x40bedd
mov esi, dword [esi + 4]
jmp 0x40bee0
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x40beea
mov eax, dword [eax + 4]
jmp 0x40beed
add eax, 4
push 0x10
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x30], ebx
jb 0x40bf0b
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041902f
add esp, 4
mov dword [esp + 0x3b8], 0xffffffff
cmp dword [esp + 0x94], ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
jb 0x40bf40
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0041902f
add esp, 4
call fcn.00418fb0
mov esi, eax
call fcn.00417f30
test al, al
je 0x40bf59
call fcn.00418490
cmp esi, eax
jge 0x40bf86
lea edx, [esp + 0x3a0]
push edx
lea ecx, [esp + 0x39c]
call fcn.00418e70
mov eax, dword [esp + 0x3a4]
mov ebx, dword [esp + 0x39c]
push esi
call fcn.004182b0
add esp, 8
xor edi, edi
push 0x2c
call fcn.00418fff
add esp, 4
mov dword [esp + 0x398], eax
cmp eax, edi
mov dword [esp + 0x3b8], 3
je 0x40bfae
push eax
call fcn.00415de0
jmp 0x40bfb0
xor eax, eax
or esi, 0xffffffff
mov dword [esp + 0x3b8], esi
mov dword [0x46ff94], eax
lea eax, [esp + 0xd4]
push eax
call fcn.00411de0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xd4]
mov dword [esp + 0x3b8], 4
mov dword [edx + 0x20], ecx
call fcn.004210a4
cmp eax, 1
jne 0x40bff4
call fcn.004181a0
mov ecx, dword [0x46ff94]
cmp ecx, edi
je 0x40c006
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea ecx, [esp + 0xd4]
mov dword [0x46ff94], edi
mov dword [esp + 0x3b8], esi
call fcn.004120a0
xor eax, eax
mov ecx, dword [esp + 0x3b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x398]
xor ecx, esp
call fcn.004362fd
mov esp, ebp
pop ebp
ret