Function at 0x53f3f0
Capabilities:
Check os version
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x644d69
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
push ebx
push ebp
push esi
push edi
push 1
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x30], esp
lea eax, [esp + 0x2f]
push eax
push str.GameplayCost.xml
call fcn.00403db0
lea ecx, [esp + 0x194]
call fcn.004326e0
lea ecx, [esp + 0x40]
push ecx
xor edi, edi
lea ecx, [esp + 0x17c]
mov dword [esp + 0x1cc], edi
call fcn.00429900
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov byte [esp + 0x1c8], 1
call fcn.004304e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x14]
lea ecx, [esp + 0x40]
mov byte [esp + 0x1c8], 0
call fcn.0042ce80
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x17c]
call fcn.00429900
mov esi, eax
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x2c], esp
lea edx, [esp + 0x2b]
push edx
push str.CupBonus
mov byte [esp + 0x1e8], 2
call fcn.00403db0
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
lea eax, [esp + 0x58]
push eax
add ecx, esi
mov byte [esp + 0x1e4], 2
call fcn.004304e0
mov ecx, eax
call fcn.00428b50
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x34]
push edx
add ecx, eax
mov byte [esp + 0x1cc], 4
call fcn.004304e0
mov ecx, eax
call fcn.00428ab0
lea ecx, [esp + 0x40]
mov byte [esp + 0x1c8], 6
call fcn.0042ce80
lea ecx, [esp + 0xac]
mov byte [esp + 0x1c8], 7
call fcn.0042ce80
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov cl, byte [esp + 0x13]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x28], eax
mov byte [esp + 0x1c], al
mov eax, edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov byte [esp + 0x30], cl
mov byte [esp + 0x1c8], 8
mov bl, 0x10
jmp 0x53f560
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x34]
cmp ecx, edi
lea eax, [esp + eax + 0x34]
je 0x53f6a5
sub esp, 0x18
mov ecx, esp
lea eax, [ecx + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x2c], esp
mov dword [esp + 0x30], ecx
mov dword [ecx + 0x14], eax
push 0x662935
push 0x662934
mov byte [esp + 0x1e8], 0xc
call fcn.00403b50
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0x4c]
mov byte [esp + 0x1e0], 8
call fcn.004304e0
mov ecx, eax
call fcn.0042b350
sub esp, 0x18
mov ecx, esp
mov esi, eax
lea eax, [ecx + 0x10]
mov dword [eax], ecx
mov dword [esp + 0x2c], esp
mov dword [esp + 0x30], ecx
mov dword [ecx + 0x14], eax
push 0x654e81
push 0x654e80
mov byte [esp + 0x1e8], 0xe
call fcn.00403b50
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [edx + 4]
lea ecx, [esp + ecx + 0x50]
mov byte [esp + 0x1e4], 8
call fcn.004304e0
mov ecx, eax
call fcn.0042b430
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1cc], bl
call fcn.0053fca0
mov dword [eax], esi
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x5c]
cmp eax, ecx
mov byte [esp + 0x1c8], 8
je 0x53f661
mov ecx, dword [esp + 0x4c]
cmp ecx, edi
je 0x53f661
sub eax, ecx
cmp eax, 0x80
jbe 0x53f657
push ecx
call fcn.00611869
add esp, 4
jmp 0x53f661
push eax
push ecx
call fcn.005d6970
add esp, 8
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + ecx + 0x38]
call fcn.004304e0
mov ecx, eax
call fcn.00428c50
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x1cc], 0x11
call fcn.00422700
lea ecx, [esp + 0x64]
mov byte [esp + 0x1c8], 8
call fcn.0042ce80
jmp 0x53f560
mov dword [esp + 0x14], edi
mov ebp, 1
mov edi, edi
lea ecx, [esp + 0x7c]
push ebp
push ecx
mov dword [esp + 0x20], 0
call fcn.004060d0
push str._Cup
push eax
lea edx, [esp + 0x74]
push edx
mov byte [esp + 0x1dc], 0x12
call fcn.00404ce0
push eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x1e4], 0x13
call fcn.0047b390
mov edx, dword [eax + 0x14]
mov esi, dword [eax + 0x10]
lea ecx, [eax + 0x10]
add esp, 0x1c
cmp edx, ecx
mov edi, eax
je 0x53f702
mov edi, dword [eax]
sub esi, edi
cmp esi, 6
jne 0x53f726
cmp edx, ecx
je 0x53f70f
mov eax, dword [eax]
mov ecx, 3
mov edi, str.Bronze
mov esi, eax
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x53f726
mov bl, 1
jmp 0x53f728
xor bl, bl
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x5c]
cmp eax, ecx
je 0x53f75a
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x53f75a
sub eax, ecx
cmp eax, 0x80
jbe 0x53f750
push ecx
call fcn.00611869
add esp, 4
jmp 0x53f75a
push eax
push ecx
call fcn.005d6970
add esp, 8
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x74]
cmp eax, edx
mov byte [esp + 0x1c8], 0x12
je 0x53f794
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x53f794
sub eax, ecx
cmp eax, 0x80
jbe 0x53f78a
push ecx
call fcn.00611869
add esp, 4
jmp 0x53f794
push eax
push ecx
call fcn.005d6970
add esp, 8
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x8c]
cmp eax, ecx
mov byte [esp + 0x1c8], 8
je 0x53f7d4
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x53f7d4
sub eax, ecx
cmp eax, 0x80
jbe 0x53f7ca
push ecx
call fcn.00611869
add esp, 4
jmp 0x53f7d4
push eax
push ecx
call fcn.005d6970
add esp, 8
test bl, bl
je 0x53f7e5
mov dword [esp + 0x18], 1
jmp 0x53fa6e
lea edx, [esp + 0x130]
push ebp
push edx
call fcn.004060d0
push str._Cup
push eax
lea eax, [esp + 0xe0]
push eax
mov byte [esp + 0x1dc], 0x14
call fcn.00404ce0
push eax
lea ecx, [esp + 0x178]
push ecx
mov byte [esp + 0x1e4], 0x15
call fcn.0047b390
mov edx, dword [eax + 0x14]
mov esi, dword [eax + 0x10]
lea ecx, [eax + 0x10]
add esp, 0x1c
cmp edx, ecx
mov edi, eax
je 0x53f838
mov edi, dword [eax]
sub esi, edi
cmp esi, 6
jne 0x53f85c
cmp edx, ecx
je 0x53f845
mov eax, dword [eax]
mov ecx, 3
mov edi, str.Silver
mov esi, eax
xor edx, edx
repe cmpsw word [esi], word es:[edi]
jne 0x53f85c
mov bl, 1
jmp 0x53f85e
xor bl, bl
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x170]
cmp eax, ecx
je 0x53f899
mov ecx, dword [esp + 0x160]
test ecx, ecx
je 0x53f899
sub eax, ecx
cmp eax, 0x80
jbe 0x53f88f
push ecx
call fcn.00611869
add esp, 4
jmp 0x53f899
push eax
push ecx
call fcn.005d6970
add esp, 8
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0xe0]
cmp eax, edx
mov byte [esp + 0x1c8], 0x14
je 0x53f8dc
mov ecx, dword [esp + 0xd0]
test ecx, ecx
je 0x53f8dc
sub eax, ecx
cmp eax, 0x80
jbe 0x53f8d2
push ecx
call fcn.00611869
add esp, 4
jmp 0x53f8dc
push eax
push ecx
call fcn.005d6970
add esp, 8
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x140]
cmp eax, ecx
mov byte [esp + 0x1c8], 8
je 0x53f91f
mov ecx, dword [esp + 0x130]
test ecx, ecx
je 0x53f91f
sub eax, ecx
cmp eax, 0x80
jbe 0x53f915
push ecx
call fcn.00611869
add esp, 4
jmp 0x53f91f
push eax
push ecx
call fcn.005d6970
add esp, 8
test bl, bl
je 0x53f930
mov dword [esp + 0x18], 2
jmp 0x53fa6e
lea edx, [esp + 0xb8]
push ebp
push edx
call fcn.004060d0
push str._Cup
push eax
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0x1dc], 0x16
call fcn.00404ce0
push eax
lea ecx, [esp + 0x118]
push ecx
mov byte [esp + 0x1e4], 0x17
call fcn.0047b390
mov edx, dword [eax + 0x14]
mov esi, dword [eax + 0x10]
lea ecx, [eax + 0x10]
add esp, 0x1c
cmp edx, ecx
mov edi, eax
je 0x53f983
mov edi, dword [eax]
sub esi, edi
cmp esi, 4
jne 0x53f99f
cmp edx, ecx
je 0x53f990
mov eax, dword [eax]
mov eax, dword [eax]
mov edx, str.Gold
cmp eax, dword [edx]
jne 0x53f99f
mov bl, 1
jmp 0x53f9a1
xor bl, bl
mov eax, dword [esp + 0x114]
lea ecx, [esp + 0x110]
cmp eax, ecx
je 0x53f9dc
mov ecx, dword [esp + 0x100]
test ecx, ecx
je 0x53f9dc
sub eax, ecx
cmp eax, 0x80
jbe 0x53f9d2
push ecx
call fcn.00611869
add esp, 4
jmp 0x53f9dc
push eax
push ecx
call fcn.005d6970
add esp, 8
mov eax, dword [esp + 0xa8]
lea edx, [esp + 0xa4]
cmp eax, edx
mov byte [esp + 0x1c8], 0x16
je 0x53fa1f
mov ecx, dword [esp + 0x94]
test ecx, ecx
je 0x53fa1f
sub eax, ecx
cmp eax, 0x80
jbe 0x53fa15
push ecx
call fcn.00611869
add esp, 4
jmp 0x53fa1f
push eax
push ecx
call fcn.005d6970
add esp, 8
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0xc8]
cmp eax, ecx
mov byte [esp + 0x1c8], 8
je 0x53fa62
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x53fa62
sub eax, ecx
cmp eax, 0x80
jbe 0x53fa58
push ecx
call fcn.00611869
add esp, 4
jmp 0x53fa62
push eax
push ecx
call fcn.005d6970
add esp, 8
test bl, bl
je 0x53fa6e
mov dword [esp + 0x18], 3
mov eax, dword [esp + 0x18]
mov edi, 1
cmp eax, edi
jb 0x53fbb3
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x148]
push edi
push edx
call fcn.004060d0
mov esi, eax
lea eax, [esp + 0x120]
push ebp
push eax
mov byte [esp + 0x1d8], 0x18
call fcn.004060d0
push esi
push eax
lea ecx, [esp + 0x100]
push ecx
mov byte [esp + 0x1e4], 0x19
call fcn.00404e00
add esp, 0x1c
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1cc], 0x1a
call fcn.0053fca0
mov edx, dword [eax]
mov eax, dword [esp + 0xfc]
add ebx, edx
lea edx, [esp + 0xf8]
cmp eax, edx
mov byte [esp + 0x1c8], 0x19
je 0x53fb1c
mov ecx, dword [esp + 0xe8]
test ecx, ecx
je 0x53fb1c
sub eax, ecx
cmp eax, 0x80
jbe 0x53fb12
push ecx
call fcn.00611869
add esp, 4
jmp 0x53fb1c
push eax
push ecx
call fcn.005d6970
add esp, 8
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x128]
cmp eax, ecx
mov byte [esp + 0x1c8], 0x18
je 0x53fb5f
mov ecx, dword [esp + 0x118]
test ecx, ecx
je 0x53fb5f
sub eax, ecx
cmp eax, 0x80
jbe 0x53fb55
push ecx
call fcn.00611869
add esp, 4
jmp 0x53fb5f
push eax
push ecx
call fcn.005d6970
add esp, 8
mov eax, dword [esp + 0x15c]
lea edx, [esp + 0x158]
cmp eax, edx
mov byte [esp + 0x1c8], 8
je 0x53fba2
mov ecx, dword [esp + 0x148]
test ecx, ecx
je 0x53fba2
sub eax, ecx
cmp eax, 0x80
jbe 0x53fb98
push ecx
call fcn.00611869
add esp, 4
jmp 0x53fba2
push eax
push ecx
call fcn.005d6970
add esp, 8
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jbe 0x53fa83
mov dword [esp + 0x14], ebx
inc ebp
cmp ebp, 3
jbe 0x53f6b0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
xor edi, edi
shl esi, 2
cmp eax, edi
mov byte [esp + 0x1c8], 7
je 0x53fbfa
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.00490b20
lea ecx, [esp + 0x1c]
mov edx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x1c8], 0
call fcn.0042ce80
lea eax, [esp + 0x1ac]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1a0]
mov dword [esp + 0x1c8], 0x1d
call fcn.0041fe40
lea ecx, [esp + 0x194]
mov byte [esp + 0x1c8], 0x1c
call fcn.00407ce0
lea ecx, [esp + 0x188]
mov byte [esp + 0x1c8], 0x1b
call fcn.0041fe40
lea ecx, [esp + 0x17c]
mov dword [esp + 0x1c8], 0xffffffff
call fcn.0041fe40
lea ecx, [esp + 0x1ac]
call fcn.00406810
mov ecx, dword [esp + 0x1c0]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1bc
ret