Function at 0x52fa10
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x6823a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push fcn.00527da0
push 0x527d70
mov esi, ecx
push 9
push 0x4c
lea ecx, [esi + 0x54]
push ecx
mov dword [esp + 0x50], esi
mov dword [esi], eax
call fcn.006718d6
lea eax, [esi + 0x300]
xor ebx, ebx
lea ecx, [eax + 8]
mov dword [esp + 0xec], ebx
mov dword [eax], ecx
mov dword [eax + 0xc], eax
mov dword [ecx], ebx
mov dword [eax + 4], ebx
lea eax, [esi + 0x310]
lea ecx, [eax + 8]
mov dword [eax], ecx
mov dword [eax + 0xc], eax
mov dword [ecx], ebx
mov dword [eax + 4], ebx
mov dword [esi + 0x508], 0x1e
mov word [esi + 0x322], bx
or edi, 0xffffffff
mov word [esi + 0x320], di
mov dword [esi + 0x1e14], 0x190
mov word [esi + 0x50c], di
mov word [esi + 0x50e], bx
mov eax, 0x40
mov dword [esi + 0x2220], eax
mov word [esi + 0x1e18], di
mov word [esi + 0x1e1a], bx
push str.DataCityTEST.MGD
mov byte [esp + 0xf0], 2
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], ebx
call fcn.0061ba80
push ebx
push ebx
push str.DataCityTEST.EPM
call fcn.0061ba00
push ebx
push ebx
push str.DataCityTEST.RES
mov dword [esi + 0x14], eax
call fcn.0061ba00
push ebx
push ebx
push 0x693c04
mov dword [esi + 0x18], eax
call fcn.0061ba00
mov ecx, dword [esi]
add esp, 0x28
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x30], ebx
call fcn.005ef5f0
mov edx, dword [esi]
cmp dword [edx], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
jbe 0x5300ac
jmp 0x52fb50
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
movzx edi, word [eax + ecx*8 + 6]
lea eax, [eax + ecx*8 + 4]
movzx ecx, word [eax]
cmp ecx, 5
mov dword [esp + 0x28], edi
ja case.default.0x52fb6f
jmp dword [ecx*4 + 0x53013c]
test edi, edi
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x20], 0
jle case.default.0x52fb6f
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 4]
shl ecx, 2
mov edx, dword [eax + ecx]
add eax, ecx
test edx, edx
je 0x52fba9
mov edi, dword [esi]
add edi, edx
mov dword [eax], edi
mov eax, dword [esi + 4]
mov edi, dword [ecx + eax]
fld dword [edi + 0x1c]
movzx eax, byte [edi + 8]
movzx ecx, byte [edi + 4]
fmul dword [0x693c00]
mov ebx, dword [edi + 0x18]
fstp dword [edi + 0x1c]
add eax, ecx
add ebx, edi
cmp eax, 1
mov dword [edi + 0x18], ebx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x1c], 1
jle 0x52fd9b
lea ebx, [edi + 0x30]
lea ebx, [ebx]
movzx edx, byte [edi + 6]
mov eax, dword [esp + 0x1c]
cmp eax, edx
movaps xmm0, xmmword [ebx - 0x10]
movaps xmm1, xmmword [ebx]
subps xmm1, xmm0
jle 0x52fc74
movzx ecx, byte [edi + 5]
cmp eax, ecx
jl 0x52fc26
movzx ecx, byte [edi + 4]
movzx edx, byte [edi + 0xa]
add edx, ecx
cmp eax, edx
jle 0x52fc74
movzx edx, byte [edi + 9]
add edx, ecx
cmp eax, edx
jge 0x52fc74
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
movaps xmmword [esp + 0x90], xmm0
fld dword [esp + 0x90]
movaps xmmword [esp + 0xb0], xmm1
fchs
fcomp dword [esp + 0xb0]
fnstsw ax
test ah, 0x41
jne 0x52fc5b
mov byte [esp + 0x1b], 1
jmp 0x52fc79
movaps xmmword [esp + 0x60], xmm0
fld dword [esp + 0x60]
movaps xmmword [esp + 0x70], xmm1
fcomp dword [esp + 0x70]
fnstsw ax
test ah, 0x41
jne 0x52fc79
mov byte [esp + 0x1b], 0
mov eax, dword [ebx]
movzx ecx, byte [esp + 0x1b]
movaps xmm0, xmm1
mulps xmm0, xmm1
movaps xmm2, xmm0
shufps xmm2, xmm0, 0x55
movaps xmm3, xmm0
addss xmm3, xmm2
movaps xmmword [esp + 0x80], xmm3
fld dword [esp + 0x80]
fcomp dword [0x68b4fc]
and eax, 0xfffffffe
or eax, ecx
mov dword [ebx], eax
fnstsw ax
test ah, 0x41
jne 0x52fd27
movaps xmm2, xmm0
shufps xmm2, xmm0, 0x55
addss xmm0, xmm2
movaps xmmword [esp + 0x50], xmm0
rsqrtss xmm0, xmm0
movss dword [esp + 0x50], xmm0
movaps xmm0, xmmword [esp + 0x50]
movaps xmm2, xmm0
shufps xmm2, xmm0, 0
movaps xmm0, xmm1
mulps xmm0, xmm2
movaps xmm2, xmm0
shufps xmm2, xmm0, 0x55
movaps xmmword [esp + 0x40], xmm2
fld dword [esp + 0x40]
fcomp dword [0x68b58c]
fnstsw ax
test ah, 0x41
jne 0x52fd1f
fld dword [esp + 0x40]
fld dword [esp + 0x40]
fcomp dword [0x68b500]
fnstsw ax
test ah, 5
jnp 0x52fd2d
fstp st(0)
fld dword [0x68b500]
jmp 0x52fd2d
fld dword [0x68b58c]
jmp 0x52fd2d
fld dword [0x68b4fc]
fchs
movaps xmmword [esp + 0xa0], xmm1
fld dword [esp + 0xa0]
mov dword [esp + 0x24], 0x8000
fcomp dword [0x68b4fc]
fnstsw ax
test ah, 5
jnp 0x52fd5b
mov dword [esp + 0x24], 0
fmul dword [0x693bfc]
call fcn.00602090
and eax, 0x7fff
cmp eax, 1
jg 0x52fd75
mov eax, 1
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
or eax, edx
mov word [ebx + 8], ax
mov word [ebx + 0xc], ax
mov eax, dword [esp + 0x1c]
inc eax
add ebx, 0x10
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x52fbf0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x52fb90
jmp case.default.0x52fb6f
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
xor edx, edx
test edi, edi
mov dword [esp + 0x34], edi
jle case.default.0x52fb6f
lea esp, [esp]
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
test ecx, ecx
lea eax, [eax + edx*4]
je 0x52fde3
mov ebx, dword [esi]
add ebx, ecx
mov dword [eax], ebx
inc edx
cmp edx, edi
jl 0x52fdd0
jmp case.default.0x52fb6f
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x2c], edi
mov edx, dword [eax + 4]
push 0xc2
lea eax, [edi + edi*2]
push str.c:_activision_truecrimeluxengine2LuxDefs.h
shl eax, 4
add eax, 4
push 0x10
push eax
mov dword [0x74a7c0], edx
call fcn.0061fe40
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0xec], 3
je 0x52fe47
push fcn.00527bf0
push 0x527bd0
push edi
lea ebx, [eax + 4]
push 0x30
push ebx
mov dword [eax], edi
call fcn.006718d6
jmp 0x52fe49
xor ebx, ebx
lea eax, [edi + edi*4]
lea eax, [eax*4 + 0x7f]
and eax, 0xffffff80
test edi, edi
mov byte [esp + 0xec], 2
mov dword [esi + 0x24], ebx
mov dword [esp + 0x2c], eax
jle 0x52ff65
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
jmp 0x52fe80
mov edx, dword [esp + 0x20]
mov ecx, dword [0x74a7c0]
mov eax, dword [ecx + edx + 4]
add ecx, edx
xor edx, edx
cmp eax, edx
je 0x52ff1e
call fcn.005f4680
xor ebx, ebx
xor edi, edi
test eax, eax
mov dword [esp + 0x28], eax
jle 0x52fedc
jmp 0x52feb0
mov ecx, dword [0x74a7c0]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xc0]
push eax
push edi
add ecx, edx
call fcn.005f4b20
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0x28]
add ebx, edx
inc edi
cmp edi, eax
jl 0x52feb0
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
lea eax, [eax + ecx + 0x10]
mov ecx, dword [0x74a7c0]
mov ecx, dword [edx + ecx + 4]
sub ecx, edi
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ebx
mov word [eax + 8], cx
mov word [eax + 0xc], cx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [eax + 0x18], cl
mov eax, dword [0x74a7c0]
mov dword [edx + eax + 4], ecx
jmp 0x52ff40
mov ecx, dword [esi + 0x24]
mov eax, dword [esp + 0x1c]
lea eax, [ecx + eax + 0x10]
mov dword [eax], edx
mov dword [eax + 4], edx
mov word [eax + 8], dx
mov word [eax + 0xc], dx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov byte [eax + 0x18], 0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add edx, 0x14
add ecx, 0x30
dec eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
jne 0x52fe80
push 0
mov ecx, esi
call fcn.0052acd0
push 1
mov ecx, esi
call fcn.0052acd0
jmp case.default.0x52fb6f
mov dword [esi + 0x44], edi
mov ecx, dword [eax + 4]
xor edx, edx
test edi, edi
mov dword [esi + 0x3c], ecx
jl case.default.0x52fb6f
nop
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + edx*4]
test ecx, ecx
lea eax, [eax + edx*4]
je 0x52ffa3
mov ebx, dword [esi]
add ebx, ecx
mov dword [eax], ebx
inc edx
cmp edx, edi
jle 0x52ff90
jmp case.default.0x52fb6f
mov ecx, dword [eax + 4]
mov eax, edi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov edx, edi
imul edx, edx, 0x160
push 0xc2
push str.c:_activision_truecrimeluxengine2LuxDefs.h
add edx, 0x10
push 0x10
push edx
mov dword [esp + 0x38], ecx
mov dword [esi + 0x38], edi
call fcn.0061fe40
add esp, 0x10
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0xec], 4
je 0x53000d
push fcn.005266b0
push 0x527b90
push edi
lea ebx, [eax + 0x10]
push 0x160
push ebx
mov dword [eax], edi
call fcn.006718d6
jmp 0x53000f
xor ebx, ebx
mov ecx, dword [esi + 0x38]
xor eax, eax
cmp ecx, eax
mov byte [esp + 0xec], 2
mov dword [esi + 0x30], ebx
mov dword [esp + 0x24], eax
jle case.default.0x52fb6f
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
add ecx, 4
mov edi, dword [ecx - 4]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
sub edx, edi
mov edi, dword [ecx + 8]
sub edi, ebx
mov dword [esp + 0x28], ebx
mov ebx, dword [esi + 0x30]
lea eax, [eax + ebx + 0xac]
mov ebx, dword [ecx - 4]
mov dword [eax + 4], edx
xor edx, edx
mov word [eax + 8], dx
mov word [eax + 0xc], dx
mov edx, dword [esp + 0x28]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x24]
mov dword [eax], ebx
mov dword [eax + 0x14], edi
mov byte [eax + 0x18], 1
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 0x38]
inc edx
add eax, 0x160
add ecx, 8
cmp edx, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
jl 0x530032
jmp case.default.0x52fb6f
mov eax, dword [eax + 4]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esi]
mov edx, dword [ecx]
inc eax
cmp eax, edx
mov dword [esp + 0x30], eax
jb 0x52fb50
mov edi, dword [esp + 0x38]
xor edx, edx
test edi, edi
jle 0x5300dd
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx + 0x14]
test eax, eax
jl 0x5300d1
mov ebx, dword [esi + 0xc]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov dword [ecx + 0x14], eax
jmp 0x5300d8
mov dword [ecx + 0x14], 0
inc edx
cmp edx, edi
jl 0x5300b6
mov edi, dword [esp + 0x34]
xor eax, eax
test edi, edi
jle 0x530100
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ecx]
mov ebx, dword [esi + 0xc]
lea edx, [edx + edx*4]
inc eax
cmp eax, edi
lea edx, [ebx + edx*4]
mov dword [ecx], edx
jl 0x5300e7
nop
push 0
mov ecx, esi
call fcn.0052ada0
test al, al
je 0x53011a
push 1
mov ecx, esi
call fcn.0052ada0
test al, al
jne 0x530123
mov ecx, esi
call fcn.0052ab40
jmp 0x530100
mov ecx, dword [esp + 0xe4]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4