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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4956b7
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x4b8670]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4b8670]
xor eax, esp
push eax
lea eax, [esp + 0x4d8]
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 0x40bfed
xor ebx, ebx
jmp 0x40bff8
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 0x40c00b
xor edi, edi
jmp 0x40c016
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
lea eax, [esp + 0x34]
push eax
call fcn.004068d0
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 + 0x4e8], 0
call fcn.00406720
lea edi, [esp + 0x98]
mov byte [esp + 0x4e0], 1
call fcn.0040bbb0
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebx, 8
push ebx
lea edx, [esp + 0x4c4]
push edx
push 0x59
push 0x400
call edi
push ebx
lea eax, [esp + 0x4cc]
push eax
push 0x5a
push 0x400
call edi
lea ecx, [esp + 0x4c0]
push ecx
lea eax, [esp + 0x4cc]
call fcn.0040bb30
mov byte [esp + 0x4e0], 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.00454cc6
mov dword [esp + 0x4e4], 0xffffffff
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.004069d0
mov edx, dword [0xefb0a0]
mov eax, dword [0xefb09c]
xor edi, edi
push edi
push edx
push eax
push 0x398
call fcn.00402920
cmp eax, edi
je 0x40c145
push 3
call fcn.004028c0
jmp 0x40c147
xor eax, eax
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40c150
sub ecx, esi
push ecx
push eax
mov ecx, 0x4c0c1c
call fcn.00407390
push 0x1c
push str.___Pro_Evolution_Soccer_2009
mov eax, 0x4c0c1c
call fcn.0040cf40
cmp byte [0xefb0b4], 0
jne 0x40c1ee
cmp dword [0x4c0c34], 0x10
mov ecx, dword [0x4c0c20]
jae 0x40c195
mov ecx, 0x4c0c20
lea edx, [esp + 0x18]
push edx
call fcn.00402cf0
cmp dword [eax + 0x18], ebx
jb 0x40c1a9
mov eax, dword [eax + 4]
jmp 0x40c1ac
add eax, 4
push eax
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp dword [esp + 0x30], ebx
mov esi, eax
jb 0x40c1c9
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041cd43
add esp, 4
cmp esi, edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
je 0x40c3c6
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40c3c6
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.00427a6f
push 0
call fcn.00429679
call fcn.0040ac10
call fcn.0041c370
push 0
call fcn.0041c910
add esp, 8
test al, al
jne 0x40c2ef
cmp dword [0x4c0c34], 0x10
mov ecx, dword [0x4c0c20]
jae 0x40c236
mov ecx, 0x4c0c20
lea edx, [esp + 0x7c]
push edx
call fcn.00402cf0
mov esi, eax
mov dword [esp + 0x4e0], 2
mov eax, dword [0xefb0a0]
mov ecx, dword [0xefb09c]
push 0
push eax
push ecx
push 0x398
call fcn.00402920
test eax, eax
je 0x40c272
push ebx
call fcn.004028c0
jmp 0x40c274
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov ecx, eax
call fcn.00402cf0
cmp dword [esi + 0x18], ebx
jb 0x40c28a
mov esi, dword [esi + 4]
jmp 0x40c28d
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x40c297
mov eax, dword [eax + 4]
jmp 0x40c29a
add eax, 4
push 0x10
push esi
push eax
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x30], ebx
jb 0x40c2ba
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041cd43
add esp, 4
mov dword [esp + 0x4e0], 0xffffffff
cmp dword [esp + 0x94], ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
jb 0x40c2ef
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0041cd43
add esp, 4
call fcn.0041c980
mov esi, eax
call fcn.0041b020
test al, al
je 0x40c308
call fcn.0041b5a0
cmp esi, eax
jge 0x40c32d
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x4c4]
call fcn.0041c6a0
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x4c4]
push esi
call fcn.0041b3a0
add esp, 8
push 0x2c
call fcn.0041cd13
add esp, 4
mov dword [esp + 0x4c0], eax
test eax, eax
mov dword [esp + 0x4e0], 3
je 0x40c355
push eax
call fcn.00418f40
jmp 0x40c357
xor eax, eax
or esi, 0xffffffff
mov dword [esp + 0x4e0], esi
mov dword [0xefa758], eax
lea eax, [esp + 0xd4]
push eax
call fcn.00412750
lea ecx, [esp + 0xd4]
mov dword [esp + 0x4e0], 4
mov dword [edi + 0x20], ecx
call fcn.00426ba4
cmp eax, 1
jne 0x40c397
call fcn.0041b290
mov ecx, dword [0xefa758]
test ecx, ecx
je 0x40c3a9
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0xd4]
mov dword [0xefa758], 0
mov dword [esp + 0x4e0], esi
call fcn.00412b10
xor eax, eax
mov ecx, dword [esp + 0x4d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c0]
xor ecx, esp
call fcn.0043a513
mov esp, ebp
pop ebp
ret