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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x495c97
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x4c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4b9668]
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 0x40c5bd
xor ebx, ebx
jmp 0x40c5c8
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 0x40c5db
xor edi, edi
jmp 0x40c5e6
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
lea eax, [esp + 0x34]
push eax
call fcn.00406840
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.00406690
lea edi, [esp + 0x98]
mov byte [esp + 0x4e0], 1
call fcn.0040c190
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.0040c110
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.00454f6f
mov dword [esp + 0x4e4], 0xffffffff
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.00406940
mov edx, dword [0xefc0c0]
mov eax, dword [0xefc0bc]
xor edi, edi
push edi
push edx
push eax
push 0x398
call fcn.004028c0
cmp eax, edi
je 0x40c715
push 3
call fcn.00402860
jmp 0x40c717
xor eax, eax
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40c720
sub ecx, esi
push ecx
push eax
mov ecx, 0x4c1c20
call fcn.004072f0
push 0x1c
push str.___Pro_Evolution_Soccer_2010
mov eax, 0x4c1c20
call fcn.0040d590
cmp byte [0xefc0d4], 0
jne 0x40c7be
cmp dword [0x4c1c38], 0x10
mov ecx, dword [0x4c1c24]
jae 0x40c765
mov ecx, 0x4c1c24
lea edx, [esp + 0x18]
push edx
call fcn.00402ca0
cmp dword [eax + 0x18], ebx
jb 0x40c779
mov eax, dword [eax + 4]
jmp 0x40c77c
add eax, 4
push eax
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp dword [esp + 0x30], ebx
mov esi, eax
jb 0x40c799
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041d0c9
add esp, 4
cmp esi, edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
je 0x40c996
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40c996
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.00427df5
push 0
call fcn.00429a1b
call fcn.0040aed0
call fcn.0041c690
push 0
call fcn.0041cc70
add esp, 8
test al, al
jne 0x40c8bf
cmp dword [0x4c1c38], 0x10
mov ecx, dword [0x4c1c24]
jae 0x40c806
mov ecx, 0x4c1c24
lea edx, [esp + 0x7c]
push edx
call fcn.00402ca0
mov esi, eax
mov dword [esp + 0x4e0], 2
mov eax, dword [0xefc0c0]
mov ecx, dword [0xefc0bc]
push 0
push eax
push ecx
push 0x398
call fcn.004028c0
test eax, eax
je 0x40c842
push ebx
call fcn.00402860
jmp 0x40c844
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov ecx, eax
call fcn.00402ca0
cmp dword [esi + 0x18], ebx
jb 0x40c85a
mov esi, dword [esi + 4]
jmp 0x40c85d
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x40c867
mov eax, dword [eax + 4]
jmp 0x40c86a
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 0x40c88a
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041d0c9
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 0x40c8bf
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0041d0c9
add esp, 4
call fcn.0041cce0
mov esi, eax
call fcn.0041b1b0
test al, al
je 0x40c8d8
call fcn.0041b730
cmp esi, eax
jge 0x40c8fd
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x4c4]
call fcn.0041ca00
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x4c4]
push esi
call fcn.0041b530
add esp, 8
push 0x2c
call fcn.0041d09e
add esp, 4
mov dword [esp + 0x4c0], eax
test eax, eax
mov dword [esp + 0x4e0], 3
je 0x40c925
push eax
call fcn.00419020
jmp 0x40c927
xor eax, eax
or esi, 0xffffffff
mov dword [esp + 0x4e0], esi
mov dword [0xefb778], eax
lea eax, [esp + 0xd4]
push eax
call fcn.00412820
lea ecx, [esp + 0xd4]
mov dword [esp + 0x4e0], 4
mov dword [edi + 0x20], ecx
call fcn.00426f2a
cmp eax, 1
jne 0x40c967
call fcn.0041b420
mov ecx, dword [0xefb778]
test ecx, ecx
je 0x40c979
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0xd4]
mov dword [0xefb778], 0
mov dword [esp + 0x4e0], esi
call fcn.00412be0
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.0043a54e
mov esp, ebp
pop ebp
ret