Function at 0x520f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6619ec
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x704e7c]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
lea esi, [ecx + 0x44]
lea eax, [esp + 0x2b0]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004a79f0
mov edi, dword [esi + 0x18]
mov esi, dword [esi]
mov ebp, dword [esp + 0x24]
xor ebx, ebx
cmp esi, ebx
je 0x520fd9
cmp esi, ebp
je 0x520fde
call fcn.006111cc
mov esi, dword [esp + 0x28]
cmp edi, esi
je 0x521346
cmp ebp, ebx
jne 0x52101e
call fcn.006111cc
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x520fff
call fcn.006111cc
add esi, 0x10
mov dword [esp + 0x1c], esi
cmp dword [esi + 0x14], ebx
je 0x521346
mov edx, dword [esi + 0x18]
lea eax, [esi + 4]
cmp edx, 0x10
jb 0x521023
mov ecx, dword [eax]
jmp 0x521025
mov eax, dword [ebp]
jmp 0x520ff5
mov ecx, eax
cmp byte [ecx], 0x23
jne 0x5210cf
cmp edx, 0x10
jb 0x521035
mov eax, dword [eax]
lea edi, [eax + 1]
push edi
push str._sshape.msm
lea edx, [esp + 0xa4]
push 0x100
push edx
call fcn.006130ac
push edi
push str._smotlist.txt
lea eax, [esp + 0x1b4]
push 0x100
push eax
call fcn.006130ac
add esp, 0x20
call fcn.00526e20
mov ebx, dword [esp + 0x2b0]
mov esi, eax
push ebx
mov ecx, esi
call fcn.005cbbe0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, esi
call fcn.00526ee0
test eax, eax
jne 0x5210b5
lea edx, [esp + 0x9c]
push edx
push ebx
push str.CRaceManager::RegisterRacePath_race_u_.LoadRaceData__s_
call fcn.00584480
push esi
call fcn.00526990
add esp, 0x10
jmp 0x521346
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x19c]
push eax
push edi
push esi
call fcn.0051f0f0
mov eax, esi
jmp 0x521348
lea ecx, [esp + 0x30]
call fcn.0044f480
mov edi, dword [esp + 0x2b0]
lea ecx, [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x2b0], ebx
call fcn.0051e770
add esp, 8
call fcn.00526e20
mov ebp, eax
push edi
mov ecx, ebp
mov dword [esp + 0x30], ebp
call fcn.005cbbe0
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], ebx
je 0x521329
mov edi, dword [esp + 0x20]
add edi, 0x24
mov dword [esp + 0x18], ebx
jmp 0x521144
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], eax
jb 0x52114f
call fcn.006111cc
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
add eax, edx
push ebx
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.00417450
push esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
mov byte [esp + 0x2b0], 1
call fcn.00494bf0
mov eax, dword [edi]
mov esi, dword [edi + 0x18]
cmp eax, ebx
je 0x5211a0
cmp eax, dword [esp + 0x24]
je 0x5211a5
call fcn.006111cc
mov ebp, dword [esp + 0x28]
cmp esi, ebp
jne 0x5211b7
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
push edx
jmp 0x5211db
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x521372
call fcn.006111cc
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x5211d4
call fcn.006111cc
push 0xffffffffffffffff
lea eax, [ebp + 0x28]
push ebx
push eax
lea ecx, [esp + 0x70]
call fcn.00416bc0
push 1
push 0x6b0f80
lea ecx, [esp + 0x6c]
call fcn.00416cc0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
mov esi, 0xf
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.00417450
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x2b4], 2
call fcn.00416bc0
push 4
push str..msm
lea ecx, [esp + 0x50]
call fcn.00416cc0
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x52124e
lea eax, [esp + 0x4c]
mov ebp, dword [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.00526ee0
test eax, eax
jne 0x5213ec
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax - 1]
mov eax, dword [esp + 0x4c]
cmp esi, ecx
je 0x521379
mov ebp, 0x10
cmp dword [esp + 0x60], ebp
jae 0x52129e
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x2b0]
push eax
push edx
push str.CRaceManager::RegisterRacePath_:_RACE__u__LOAD_MSMFILE__s__ERROR._Will_Find_Another_Path.
call fcn.00584480
add esp, 0xc
cmp dword [esp + 0x60], ebp
jb 0x5212c7
mov eax, dword [esp + 0x4c]
push eax
call fcn.00610458
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov byte [esp + 0x2a8], bl
cmp dword [esp + 0x7c], ebp
jb 0x5212f1
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00610458
add esp, 4
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
add dword [esp + 0x18], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x14], esi
cmp esi, eax
jb 0x521140
mov edi, dword [esp + 0x2b0]
mov ebp, dword [esp + 0x2c]
push edi
push str.CRaceManager::RegisterRacePath_:_RACE__u__HAVE_NO_PATH_ERROR
call fcn.00584480
push ebp
call fcn.00526990
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.0044f5f0
xor eax, eax
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.006108ae
add esp, 0x298
ret 4
mov eax, dword [eax]
jmp 0x5211ca
mov esi, 0x10
cmp dword [esp + 0x60], esi
jae 0x521388
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x2b0]
push eax
push edx
push str.CRaceManager::RegisterRacePath_:_RACE__u__LOAD_MSMFILE__s__ERROR
call fcn.00584480
push ebp
call fcn.00526990
add esp, 0x10
cmp dword [esp + 0x60], esi
jb 0x5213b7
mov eax, dword [esp + 0x4c]
push eax
call fcn.00610458
add esp, 4
mov edi, 0xf
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x7c], esi
jb 0x5213db
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00610458
add esp, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
jmp 0x52133d
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
call fcn.00417450
mov ecx, ebp
mov byte [esp + 0x2a8], 3
call fcn.00521b20
mov esi, eax
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x521430
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x521430
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x88]
call fcn.00416cc0
mov ecx, dword [esp + 0x84]
mov esi, 0x10
cmp dword [esp + 0x98], esi
jae 0x521463
lea ecx, [esp + 0x84]
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x7c], esi
jae 0x521471
lea eax, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ebp
call fcn.0051f0f0
cmp dword [esp + 0x98], esi
jb 0x521496
mov eax, dword [esp + 0x84]
push eax
call fcn.00610458
add esp, 4
mov edi, 0xf
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x60], esi
jb 0x5214c3
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00610458
add esp, 4
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x7c], esi
jb 0x5214e2
mov edx, dword [esp + 0x68]
push edx
call fcn.00610458
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.0044f5f0
mov eax, ebp
jmp 0x521348