Function at 0x59d500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x872ff3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, ecx
lea ebx, [esi + 8]
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
xor ebp, ebp
push edi
mov dword [esp + 0x18], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], 0x40010000
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov byte [esi + 0x28], 0
lea eax, [esi + 0x30]
mov dword [esi], 0x8a2040
mov dword [esp + 0x24], ebp
mov dword [eax], eax
mov dword [eax + 4], eax
lea ecx, [esi + 0x4c]
mov eax, ecx
mov dword [eax + 4], ebp
mov dword [eax], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 8], ebp
add eax, 8
mov dword [eax + 0xc], ebp
mov dword [eax + 8], ebp
add eax, 8
mov dword [eax + 0xc], ebp
mov dword [eax + 8], ebp
add eax, 8
mov dword [eax + 0xc], ebp
mov dword [eax + 8], ebp
add eax, 8
mov dword [eax + 0xc], ebp
mov dword [eax + 8], ebp
add eax, 8
mov dword [eax + 0xc], ebp
mov dword [eax + 8], ebp
add eax, 8
mov dword [eax + 0xc], ebp
mov dword [eax + 8], ebp
mov dword [esi + 0xa4], ebp
mov dword [esi + 0xa0], ebp
mov dword [esi + 0x9c], ebp
add eax, 8
mov dword [esp + 0x14], ecx
mov dword [esi + 0xa8], ebp
mov dword [esi + 0xac], ebp
mov dword [esi + 0xc0], 0xffffffff
mov dword [0x91cf04], ebp
lea ecx, [esi + 0x3c]
mov byte [esp + 0x24], 1
mov dword [esi + 0xb0], ebp
mov dword [esi + 0xb4], ebp
mov dword [esi + 0xb8], ebp
mov dword [esi + 0xbc], ebp
xor eax, eax
mov dword [esp + 0x2c], ecx
lea ebx, [ebx]
inc eax
push eax
push str.TRACK_MAP_d
mov dword [esp + 0x18], eax
call fcn.00573140
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.00524850
mov edi, eax
add esp, 0x10
cmp edi, ebp
je 0x59d640
call fcn.00466410
cmp eax, ebp
je 0x59d631
mov dword [eax + 8], edi
jmp 0x59d633
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
cmp edi, ebp
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
je 0x59d65b
mov eax, dword [esp + 0x14]
lea ecx, [eax + 8]
push ecx
push eax
push ebp
mov ecx, edi
call fcn.005b3670
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edi, 4
add edx, 0x10
cmp eax, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], edx
jb 0x59d600
push str.TRACK_MAP
call fcn.00573140
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.00524850
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x59d6b4
call fcn.00466410
cmp eax, ebp
je 0x59d6a5
mov dword [eax + 8], edi
jmp 0x59d6a7
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
push str.MINIMAP_NORTH_INDICATOR
mov dword [esi + 0x38], edi
call fcn.00573140
push eax
mov eax, dword [esi + 0x10]
push eax
call fcn.005251a0
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x59d6f1
call fcn.00466410
cmp eax, ebp
je 0x59d6e2
mov dword [eax + 8], edi
jmp 0x59d6e4
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
push str.PLAYERCARINDICATOR
mov dword [esi + 0x8c], edi
call fcn.00573140
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.005251a0
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x59d731
call fcn.00466410
cmp eax, ebp
je 0x59d722
mov dword [eax + 8], edi
jmp 0x59d724
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
push str.PLAYERCARINDICATOR2
mov dword [esi + 0x90], edi
call fcn.00573140
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.005251a0
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x59d771
call fcn.00466410
cmp eax, ebp
je 0x59d762
mov dword [eax + 8], edi
jmp 0x59d764
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
push str.TRACKMAPTARGETRING
mov dword [esi + 0x94], edi
call fcn.00573140
push eax
mov eax, dword [esi + 0x10]
push eax
call fcn.00524850
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x59d7b1
call fcn.00466410
cmp eax, ebp
je 0x59d7a2
mov dword [eax + 8], edi
jmp 0x59d7a4
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
push str.MAP_COLOR_TINT
call fcn.00573140
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.00524850
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x59d7eb
call fcn.00466410
cmp eax, ebp
je 0x59d7dc
mov dword [eax + 8], edi
jmp 0x59d7de
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
xor eax, eax
mov ecx, 0x88
lea edi, [esi + 0x118]
push str.HELICOPTER_ICON_GROUP
rep stosd dword es:[edi], eax
call fcn.00573140
add esp, 4
push eax
mov ecx, esi
call fcn.0058bbd0
push str.HELICOPTER_LINE_OF_SIGHT
mov dword [esi + 0xc8], eax
call fcn.00573140
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.005251a0
mov edi, eax
add esp, 0xc
cmp edi, ebp
je 0x59d84f
call fcn.00466410
cmp eax, ebp
je 0x59d840
mov dword [eax + 8], edi
jmp 0x59d842
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
lea eax, [esi + 0xf0]
mov dword [esi + 0xcc], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x10], eax
jmp 0x59d870
xor ebp, ebp
jmp 0x59d870
mov ecx, dword [esp + 0x2c]
push ecx
push str.MMICON_COPCAR__d
call fcn.00573140
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.005251a0
mov edi, eax
add esp, 0x10
cmp edi, ebp
je 0x59d8af
call fcn.00466410
cmp eax, ebp
je 0x59d8a0
mov dword [eax + 8], edi
jmp 0x59d8a2
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
push ecx
push str.MMICON_AIRACER__d
mov dword [eax - 0x20], edi
call fcn.00573140
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.005251a0
mov edi, eax
add esp, 0x10
cmp edi, ebp
je 0x59d8f4
call fcn.00466410
cmp eax, ebp
je 0x59d8e6
mov dword [eax + 8], edi
mov ebp, eax
mov eax, dword [ebx + 4]
mov dword [eax], ebp
mov dword [ebx + 4], ebp
mov dword [ebp + 4], eax
mov dword [ebp], ebx
mov eax, dword [esp + 0x10]
mov ecx, eax
add ecx, 0x28
mov dword [eax], edi
mov ebp, 0x8f3ac0
mov dword [esp + 0x14], ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x59d985
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x59d938
mov edx, dword [ebp]
push 0x89cef0
push edx
call fcn.00461300
add esp, 8
test eax, eax
jne 0x59d938
mov eax, dword [esp + 0x14]
mov dword [eax], 0
jmp 0x59d985
mov ecx, dword [ebp]
push edi
push ecx
call fcn.00573140
mov edx, dword [esi + 0x10]
push eax
push edx
call fcn.005251a0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x59d972
call fcn.00466410
test eax, eax
je 0x59d963
mov dword [eax + 8], edi
jmp 0x59d965
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
test edi, edi
mov eax, dword [esp + 0x14]
mov dword [eax], edi
je 0x59d985
push edi
call fcn.00514c70
add esp, 4
mov ecx, dword [esp + 0x14]
add ebp, 0x14
add ecx, 0x20
cmp ebp, 0x8f3c14
mov dword [esp + 0x14], ecx
jl 0x59d908
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
inc eax
add edx, 4
cmp eax, 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], edx
jb 0x59d865
push str.MMICON_CHECKPOINT
call fcn.00573140
mov ecx, dword [esi + 0x10]
push eax
push ecx
call fcn.005251a0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x59d9f6
call fcn.00466410
test eax, eax
je 0x59d9e7
mov dword [eax + 8], edi
jmp 0x59d9e9
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov edx, dword [esi + 0x10]
push 0xe8741681
push edx
mov dword [esi + 0x110], edi
call fcn.005251a0
mov edi, eax
add esp, 8
test edi, edi
je 0x59da30
call fcn.00466410
test eax, eax
je 0x59da21
mov dword [eax + 8], edi
jmp 0x59da23
xor eax, eax
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ebx + 4], eax
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov eax, dword [esi + 0x38]
test eax, eax
mov dword [esi + 0x114], edi
je 0x59da9b
mov eax, dword [eax + 0x2c]
mov ecx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esi + 0x9c], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xa0], edx
mov eax, dword [eax + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0x38]
push edx
push eax
call fcn.00524ee0
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x24]
mov dword [esi + 0xb8], ecx
mov ecx, dword [esi + 0x38]
push eax
push ecx
call fcn.00524ee0
mov edx, dword [esp + 0x44]
add esp, 0x18
mov dword [esi + 0xbc], edx
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8