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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x473784
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4936d0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x4936d0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
xor ebx, ebx
push 0xbe
push ebx
mov dword [esp + 0x24], ecx
mov byte [esp + 0x20], bl
call edi
cmp eax, ebx
jne 0x40c842
xor esi, esi
jmp 0x40c84c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push 0xa
push 0xbe
push ebx
call edi
cmp eax, ebx
jne 0x40c85e
xor edi, edi
jmp 0x40c868
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
call fcn.004067f0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], vtable.ysl::storage::memory_streambuf.0
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], esi
mov dword [ecx], edi
mov edx, dword [esp + 0x40]
mov dword [edx], edi
mov ecx, dword [esp + 0x50]
lea eax, [edi + esi]
sub eax, edi
mov dword [ecx], eax
mov edx, dword [esp + 0x2c]
mov dword [edx], edi
mov ecx, dword [esp + 0x3c]
mov dword [ecx], edi
mov edx, dword [esp + 0x4c]
mov dword [edx], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x288], ebx
call fcn.00406610
lea edi, [esp + 0x68]
mov byte [esp + 0x280], 1
call fcn.0040c1d0
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, 8
push esi
lea edx, [esp + 0x264]
push edx
push 0x59
push 0x400
call edi
push esi
lea eax, [esp + 0x26c]
push eax
push 0x5a
push 0x400
call edi
lea ecx, [esp + 0x260]
push ecx
lea eax, [esp + 0x26c]
call fcn.0040c150
mov edi, 0xf
mov dword [esp + 0x25c], edi
mov dword [esp + 0x258], ebx
mov byte [esp + 0x248], bl
mov dword [esp + 0x240], edi
mov dword [esp + 0x23c], ebx
mov byte [esp + 0x22c], bl
lea edx, [esp + 0x228]
push edx
lea eax, [esp + 0x248]
push eax
mov byte [esp + 0x288], 3
call fcn.0040c390
test al, al
je 0x40c978
lea edx, [esp + 0x244]
call fcn.0040cd80
test eax, eax
sete byte [esp + 0x14]
cmp dword [esp + 0x240], 0x10
jb 0x40c992
mov ecx, dword [esp + 0x22c]
push ecx
call fcn.0041d58d
add esp, 4
cmp dword [esp + 0x25c], 0x10
mov dword [esp + 0x240], edi
mov dword [esp + 0x23c], ebx
mov byte [esp + 0x22c], bl
jb 0x40c9c1
mov edx, dword [esp + 0x248]
push edx
call fcn.0041d58d
add esp, 4
mov byte [esp + 0x280], bl
mov eax, dword [esp + 0x68]
mov dword [esp + 0x25c], edi
mov dword [esp + 0x258], ebx
mov byte [esp + 0x248], bl
mov ecx, dword [eax + 4]
lea edx, [esp + 0x70]
mov dword [esp + ecx + 0x68], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
push edx
mov dword [esp + 0x74], vtable.std::ios_base.0
call fcn.00455106
mov dword [esp + 0x284], 0xffffffff
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.ysl::storage::memory_streambuf.0
call fcn.004068f0
mov eax, dword [0x4ced18]
mov ecx, dword [0x4ced14]
push ebx
push eax
push ecx
push 0x398
call fcn.004028e0
cmp eax, ebx
je 0x40ca42
push 3
call fcn.00402870
jmp 0x40ca44
xor eax, eax
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40ca50
sub ecx, edi
push ecx
push eax
mov eax, 0x495ba8
call fcn.0040dbd0
push 3
push 0x4859cc
mov eax, 0x495ba8
call fcn.0040dbd0
push 0x19
push str.Pro_Evolution_Soccer_2013
mov eax, 0x495ba8
call fcn.0040dbd0
cmp byte [0x4ced20], bl
jne 0x40cb14
cmp dword [0x495bc0], 0x10
mov ecx, dword [0x495bac]
jae 0x40caa7
mov ecx, 0x495bac
lea edx, [esp + 0x228]
push edx
call fcn.00402c30
cmp dword [eax + 0x18], esi
jb 0x40cabe
mov eax, dword [eax + 4]
jmp 0x40cac1
add eax, 4
push eax
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp dword [esp + 0x240], esi
jb 0x40cae4
mov eax, dword [esp + 0x22c]
push eax
call fcn.0041d58d
add esp, 4
xor ecx, ecx
mov dword [esp + 0x240], 7
mov dword [esp + 0x23c], ebx
mov word [esp + 0x22c], cx
cmp edi, ebx
je 0x40cd1c
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40cd1c
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [esp + 0x18]
call fcn.00428df1
push ebx
call fcn.0042a4c7
call fcn.0040af40
call fcn.0041cb40
push ebx
call fcn.0041d150
add esp, 8
test al, al
jne 0x40cc36
cmp dword [0x495bc0], 0x10
mov ecx, dword [0x495bac]
jae 0x40cb58
mov ecx, 0x495bac
lea edx, [esp + 0x244]
push edx
call fcn.00402c30
mov edi, eax
mov dword [esp + 0x280], 4
mov eax, dword [0x4ced18]
mov ecx, dword [0x4ced14]
push ebx
push eax
push ecx
push 0x398
call fcn.004028e0
cmp eax, ebx
je 0x40cb96
push esi
call fcn.00402870
jmp 0x40cb98
xor eax, eax
lea edx, [esp + 0x228]
push edx
mov ecx, eax
call fcn.00402c30
cmp dword [edi + 0x18], esi
jb 0x40cbb1
mov edi, dword [edi + 4]
jmp 0x40cbb4
add edi, 4
cmp dword [eax + 0x18], esi
jb 0x40cbbe
mov eax, dword [eax + 4]
jmp 0x40cbc1
add eax, 4
movzx ecx, byte [esp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 0x100000
or ecx, 0x10
push ecx
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x240], esi
jb 0x40cbf6
mov edx, dword [esp + 0x22c]
push edx
call fcn.0041d58d
add esp, 4
xor eax, eax
mov dword [esp + 0x280], 0xffffffff
mov dword [esp + 0x240], 7
mov dword [esp + 0x23c], ebx
mov word [esp + 0x22c], ax
cmp dword [esp + 0x25c], esi
jb 0x40cc36
mov ecx, dword [esp + 0x248]
push ecx
call fcn.0041d58d
add esp, 4
call fcn.0041d210
mov edi, eax
call fcn.0041b6d0
test al, al
je 0x40cc4f
call fcn.0041bc40
cmp edi, eax
jge 0x40cc7c
lea edx, [esp + 0x268]
push edx
lea ecx, [esp + 0x264]
call fcn.0041cea0
mov eax, dword [esp + 0x26c]
mov ebx, dword [esp + 0x264]
push edi
call fcn.0041ba50
add esp, 8
xor ebx, ebx
push 0x48
call fcn.0041d553
add esp, 4
mov dword [esp + 0x260], eax
mov dword [esp + 0x280], 5
cmp eax, ebx
je 0x40cca4
push eax
call fcn.00419360
jmp 0x40cca6
xor eax, eax
or esi, 0xffffffff
mov dword [esp + 0x280], esi
mov dword [0x4ce3b4], eax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0xa8]
push ecx
call fcn.00413660
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xa4]
mov dword [esp + 0x280], 6
mov ecx, edx
mov dword [eax + 0x20], edx
call fcn.00427e37
cmp eax, 1
jne 0x40ccf1
call fcn.0041b940
mov ecx, dword [0x4ce3b4]
cmp ecx, ebx
je 0x40cd03
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0xa4]
mov dword [0x4ce3b4], ebx
mov dword [esp + 0x280], esi
call fcn.00413b70
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0043bc1b
mov esp, ebp
pop ebp
ret