Function at 0x10031790
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010e008
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10163164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
mov esi, dword [ebx + 8]
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 8]
lea edx, [eax + 4]
lea eax, [edi + 0xc]
add ecx, 4
mov dword [ebp - 0x34], eax
lea eax, [esi + 0xc]
push eax
push edx
push ecx
push 0x5a
push str._NFSDK__2__GameScene__:_46___:_8__:_3___SceneLink::EnterScene__
lea edx, [edi + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.10032580
add esp, 0x14
cmp dword [eax + 0x14], 0x10
jb 0x10031815
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x10031850
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10031846
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100319c2
push ecx
push edx
call fcn.100b88b0
add esp, 8
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x1003185b
lock inc dword [esi + 4]
mov eax, dword [ebx + 0xc]
mov esi, dword [edi + 0x58]
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x58], eax
or edi, 0xffffffff
test esi, esi
je 0x10031890
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x10031890
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x10031890
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x48]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x1003196c
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100318b3
lock inc dword [eax + 4]
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
cmp byte [ecx + 0x74], 0
jne 0x100318f0
cmp ecx, dword [ebx + 0xc]
je 0x100318f0
sub esp, 8
add ecx, 0x10
mov eax, esp
push 0x10163ac0
push 4
push ecx
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.10032410
mov byte [ebp - 4], 0
test edi, edi
je 0x10031919
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x10031919
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x10031919
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10031944
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10031940
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x10031940
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10031930
mov esi, eax
jmp 0x1003195c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1003195c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10031950
cmp byte [esi + 0xd], 0
je 0x100318a2
mov eax, dword [ebp - 0x30]
or edi, 0xffffffff
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x1003197d
push dword [ebp - 0x38]
mov eax, dword [ecx]
push dword [ebp - 0x34]
call dword [eax]
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x100319a2
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100319a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100319a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100b8868
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.100c9aa4
int3