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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x455497
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 0x40bb7d
xor ebx, ebx
jmp 0x40bb88
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 0x40bb9b
xor edi, edi
jmp 0x40bba6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
lea eax, [esp + 0x34]
push eax
call fcn.004062b0
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.00406100
lea edi, [esp + 0x98]
mov byte [esp + 0x3b8], 1
call fcn.0040b740
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.0040b6c0
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.0044ff2a
mov dword [esp + 0x3bc], 0xffffffff
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.004063b0
cmp byte [0x4708b4], 0
jne 0x40bd3f
mov edx, dword [0x4708a0]
mov eax, dword [0x47089c]
xor edi, edi
push edi
push edx
push eax
push 0x398
call fcn.004023e0
cmp eax, edi
je 0x40bce2
push 3
call fcn.00402380
jmp 0x40bce4
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.004027b0
cmp dword [eax + 0x18], ebx
jb 0x40bcfa
mov eax, dword [eax + 4]
jmp 0x40bcfd
add eax, 4
push eax
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp dword [esp + 0x30], ebx
mov esi, eax
jb 0x40bd1a
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041902a
add esp, 4
cmp esi, edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
je 0x40bf2f
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40bf2f
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [esp + 0x14]
call fcn.0042443f
xor edi, edi
push edi
call fcn.004258f0
call fcn.0040a570
call fcn.00418be0
push edi
call fcn.00418f40
add esp, 8
test al, al
jne 0x40be50
mov eax, dword [0x4708a0]
mov ecx, dword [0x47089c]
push edi
push eax
push ecx
push 0x398
call fcn.004023e0
cmp eax, edi
je 0x40bd96
push 3
call fcn.00402380
jmp 0x40bd98
xor eax, eax
lea edx, [esp + 0x7c]
push edx
mov ecx, eax
call fcn.004027b0
mov esi, eax
mov dword [esp + 0x3b8], 2
mov eax, dword [0x4708a0]
mov ecx, dword [0x47089c]
push edi
push eax
push ecx
push 0x398
call fcn.004023e0
cmp eax, edi
je 0x40bdd5
push ebx
call fcn.00402380
jmp 0x40bdd7
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov ecx, eax
call fcn.004027b0
cmp dword [esi + 0x18], ebx
jb 0x40bded
mov esi, dword [esi + 4]
jmp 0x40bdf0
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x40bdfa
mov eax, dword [eax + 4]
jmp 0x40bdfd
add eax, 4
push 0x10
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x30], ebx
jb 0x40be1b
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041902a
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 0x40be50
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0041902a
add esp, 4
call fcn.00418fb0
mov esi, eax
call fcn.00417f30
test al, al
je 0x40be69
call fcn.00418490
cmp esi, eax
jge 0x40be96
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 0x40bebe
push eax
call fcn.00415e30
jmp 0x40bec0
xor eax, eax
or esi, 0xffffffff
mov dword [esp + 0x3b8], esi
mov dword [0x46ff8c], eax
lea eax, [esp + 0xd4]
push eax
call fcn.00411e20
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xd4]
mov dword [esp + 0x3b8], 4
mov dword [edx + 0x20], ecx
call fcn.004210a8
cmp eax, 1
jne 0x40bf04
call fcn.004181a0
mov ecx, dword [0x46ff8c]
cmp ecx, edi
je 0x40bf16
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea ecx, [esp + 0xd4]
mov dword [0x46ff8c], edi
mov dword [esp + 0x3b8], esi
call fcn.004120e0
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.004362fe
mov esp, ebp
pop ebp
ret