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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4736b4
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 0x40c5d2
xor esi, esi
jmp 0x40c5dc
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 0x40c5ee
xor edi, edi
jmp 0x40c5f8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
lea eax, [esp + 0x1c]
push eax
call fcn.004067b0
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.004065d0
lea edi, [esp + 0x68]
mov byte [esp + 0x280], 1
call fcn.0040bf60
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.0040bee0
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.0040c120
test al, al
je 0x40c708
lea edx, [esp + 0x244]
call fcn.0040cae0
test eax, eax
sete byte [esp + 0x14]
cmp dword [esp + 0x240], 0x10
jb 0x40c722
mov ecx, dword [esp + 0x22c]
push ecx
call fcn.0041d532
add esp, 4
cmp dword [esp + 0x25c], 0x10
mov dword [esp + 0x240], edi
mov dword [esp + 0x23c], ebx
mov byte [esp + 0x22c], bl
jb 0x40c751
mov edx, dword [esp + 0x248]
push edx
call fcn.0041d532
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.0045504e
mov dword [esp + 0x284], 0xffffffff
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.ysl::storage::memory_streambuf.0
call fcn.004068b0
mov eax, dword [0x4ced18]
mov ecx, dword [0x4ced14]
push ebx
push eax
push ecx
push 0x398
call fcn.004028c0
cmp eax, ebx
je 0x40c7d2
push 3
call fcn.00402850
jmp 0x40c7d4
xor eax, eax
mov ecx, eax
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40c7e0
sub ecx, edi
push ecx
push eax
mov eax, 0x495ba8
call fcn.0040d970
push 3
push 0x4859ac
mov eax, 0x495ba8
call fcn.0040d970
push 0x19
push str.Pro_Evolution_Soccer_2012
mov eax, 0x495ba8
call fcn.0040d970
cmp byte [0x4ced20], bl
jne 0x40c8a4
cmp dword [0x495bc0], 0x10
mov ecx, dword [0x495bac]
jae 0x40c837
mov ecx, 0x495bac
lea edx, [esp + 0x228]
push edx
call fcn.00402c10
cmp dword [eax + 0x18], esi
jb 0x40c84e
mov eax, dword [eax + 4]
jmp 0x40c851
add eax, 4
push eax
push ebx
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp dword [esp + 0x240], esi
jb 0x40c874
mov eax, dword [esp + 0x22c]
push eax
call fcn.0041d532
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 0x40caac
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40caac
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ecx, dword [esp + 0x18]
call fcn.00428d39
push ebx
call fcn.0042a398
call fcn.0040afd0
call fcn.0041caf0
push ebx
call fcn.0041d100
add esp, 8
test al, al
jne 0x40c9c6
cmp dword [0x495bc0], 0x10
mov ecx, dword [0x495bac]
jae 0x40c8e8
mov ecx, 0x495bac
lea edx, [esp + 0x244]
push edx
call fcn.00402c10
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.004028c0
cmp eax, ebx
je 0x40c926
push esi
call fcn.00402850
jmp 0x40c928
xor eax, eax
lea edx, [esp + 0x228]
push edx
mov ecx, eax
call fcn.00402c10
cmp dword [edi + 0x18], esi
jb 0x40c941
mov edi, dword [edi + 4]
jmp 0x40c944
add edi, 4
cmp dword [eax + 0x18], esi
jb 0x40c94e
mov eax, dword [eax + 4]
jmp 0x40c951
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 0x40c986
mov edx, dword [esp + 0x22c]
push edx
call fcn.0041d532
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 0x40c9c6
mov ecx, dword [esp + 0x248]
push ecx
call fcn.0041d532
add esp, 4
call fcn.0041d1c0
mov edi, eax
call fcn.0041b680
test al, al
je 0x40c9df
call fcn.0041bbf0
cmp edi, eax
jge 0x40ca0c
lea edx, [esp + 0x268]
push edx
lea ecx, [esp + 0x264]
call fcn.0041ce50
mov eax, dword [esp + 0x26c]
mov ebx, dword [esp + 0x264]
push edi
call fcn.0041ba00
add esp, 8
xor ebx, ebx
push 0x48
call fcn.0041d503
add esp, 4
mov dword [esp + 0x260], eax
mov dword [esp + 0x280], 5
cmp eax, ebx
je 0x40ca34
push eax
call fcn.00419330
jmp 0x40ca36
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.00413630
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xa4]
mov dword [esp + 0x280], 6
mov ecx, edx
mov dword [eax + 0x20], edx
call fcn.00427dfd
cmp eax, 1
jne 0x40ca81
call fcn.0041b8f0
mov ecx, dword [0x4ce3b4]
cmp ecx, ebx
je 0x40ca93
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.00413b40
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.0043bb40
mov esp, ebp
pop ebp
ret