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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a0a77
mov eax, dword fs:[0]
push eax
sub esp, 0x508
mov eax, dword [0x4de6d0]
xor eax, esp
mov dword [esp + 0x500], eax
push ebx
push esi
push edi
mov eax, dword [0x4de6d0]
xor eax, esp
push eax
lea eax, [esp + 0x518]
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 0x40c6ad
xor ebx, ebx
jmp 0x40c6b8
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 0x40c6cb
xor edi, edi
jmp 0x40c6d6
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 + 0x528], 0
call fcn.00406700
lea edi, [esp + 0x98]
mov byte [esp + 0x520], 1
call fcn.0040c210
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebx, 8
push ebx
lea edx, [esp + 0x504]
push edx
push 0x59
push 0x400
call edi
push ebx
lea eax, [esp + 0x50c]
push eax
push 0x5a
push 0x400
call edi
lea ecx, [esp + 0x500]
push ecx
lea eax, [esp + 0x50c]
call fcn.0040c190
mov byte [esp + 0x520], 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.0045510e
mov dword [esp + 0x524], 0xffffffff
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], esi
call fcn.004069d0
mov edx, dword [0xf415d8]
mov eax, dword [0xf415d4]
push 0
push edx
push eax
push 0x398
call fcn.00402920
test eax, eax
je 0x40c804
push 3
call fcn.004028b0
jmp 0x40c806
xor eax, eax
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x40c810
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40c810
sub ecx, esi
push ecx
push eax
mov ecx, 0x4fc66c
call fcn.004074c0
push 0x1c
push str.___Pro_Evolution_Soccer_2011
mov eax, 0x4fc66c
call fcn.0040d710
cmp byte [0xf41600], 0
jne 0x40c8b3
cmp dword [0x4fc684], 0x10
mov ecx, dword [0x4fc670]
jae 0x40c853
mov ecx, 0x4fc670
lea edx, [esp + 0x18]
push edx
call fcn.00402d80
cmp dword [eax + 0x18], ebx
jb 0x40c867
mov eax, dword [eax + 4]
jmp 0x40c86a
add eax, 4
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
cmp dword [esp + 0x30], ebx
jb 0x40c888
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041d512
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
test esi, esi
je 0x40ca98
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40ca98
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.00428cbe
push 0
call fcn.0042a321
add esp, 4
call fcn.0040b210
call fcn.0041cb20
push 0
call fcn.0041d130
add esp, 4
test al, al
jne 0x40c9bc
cmp dword [0x4fc684], 0x10
mov ecx, dword [0x4fc670]
jae 0x40c8fe
mov ecx, 0x4fc670
lea edx, [esp + 0x7c]
push edx
call fcn.00402d80
mov esi, eax
mov dword [esp + 0x520], 2
mov eax, dword [0xf415d8]
mov ecx, dword [0xf415d4]
push 0
push eax
push ecx
push 0x398
call fcn.00402920
test eax, eax
je 0x40c93a
push ebx
call fcn.004028b0
jmp 0x40c93c
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov ecx, eax
call fcn.00402d80
cmp dword [esi + 0x18], ebx
jb 0x40c952
mov esi, dword [esi + 4]
jmp 0x40c955
add esi, 4
cmp dword [eax + 0x18], ebx
jb 0x40c95f
mov eax, dword [eax + 4]
jmp 0x40c962
add eax, 4
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x30], ebx
jb 0x40c981
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041d512
add esp, 4
xor ecx, ecx
mov dword [esp + 0x520], 0xffffffff
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], cx
cmp dword [esp + 0x94], ebx
jb 0x40c9bc
mov edx, dword [esp + 0x80]
push edx
call fcn.0041d512
add esp, 4
call fcn.0041d1a0
mov esi, eax
call fcn.0041b6d0
test al, al
je 0x40c9d5
call fcn.0041bc40
cmp esi, eax
jge 0x40c9fd
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x504]
call fcn.0041ce80
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x504]
add esp, 4
push esi
call fcn.0041ba50
add esp, 4
push 0x48
call fcn.0041d4e3
add esp, 4
mov dword [esp + 0x500], eax
mov dword [esp + 0x520], 3
test eax, eax
je 0x40ca25
push eax
call fcn.00419340
jmp 0x40ca27
xor eax, eax
lea ecx, [esp + 0xd4]
or esi, 0xffffffff
mov dword [esp + 0x520], esi
push ecx
mov dword [0xf40c68], eax
call fcn.00412b20
lea edx, [esp + 0xd4]
mov dword [esp + 0x520], 4
mov ecx, edx
mov dword [edi + 0x20], edx
call fcn.00427d5d
cmp eax, 1
jne 0x40ca69
call fcn.0041b940
mov ecx, dword [0xf40c68]
test ecx, ecx
je 0x40ca7b
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea ecx, [esp + 0xd4]
mov dword [0xf40c68], 0
mov dword [esp + 0x520], esi
call fcn.00412ee0
xor eax, eax
mov ecx, dword [esp + 0x518]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x500]
xor ecx, esp
call fcn.0043ba5f
mov esp, ebp
pop ebp
ret