Function at 0x446ea0
Capabilities:
Check for time delay via queryperformancecounter
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x530
mov ecx, dword [0x52b40c]
mov eax, dword [ecx + 0x10ea8]
mov dword [esp + 0x20], eax
xor eax, eax
or edx, 0xffffffff
push ebx
xor ebx, ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [0x52b3ac]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x538]
mov dword [ecx + 0x4a24], edx
mov dword [ecx + 0x809c], ebx
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add eax, dword [ecx + 0x18]
push ebp
push esi
push edi
mov dword [esp + 0x38], ebx
lea ebp, [ebx + 1]
je 0x446f13
cmp dword [eax + 0x1c], ebp
jne 0x446f13
mov eax, dword [eax + 0x24]
jmp 0x446f15
xor eax, eax
mov ecx, dword [eax + 4]
push 0xff
push 0xff
push 0xff
push ecx
call sub.SDL.dll_SDL_MapRGB
fldz
fadd qword [0x4a6ba0]
add esp, 8
fstp qword [esp]
call sub.MSVCR90.dll_floor
call fcn.00499690
mov edx, dword [0x52b40c]
mov dword [edx + 0x10f1c], eax
call fcn.0044c8a0
xor ecx, ecx
call fcn.004354b0
mov ecx, dword [0x52be24]
mov eax, dword [0x52be10]
dec ecx
dec eax
push ebx
xor edx, edx
call fcn.004352b0
mov eax, dword [0x52b40c]
add esp, 0xc
mov dword [eax + 0x10eb0], ebx
mov dword [eax + 0x10eb4], ebx
call fcn.004375f0
call fcn.00437400
push str.Start_of_game_loop_n
mov dword [esp + 0x54], eax
call fcn.00444320
mov esi, dword [0x52b40c]
add esp, 4
cmp dword [esi + 0x12460], ebx
je 0x446fd8
cmp dword [esi + 0x10ea8], 0x7530
mov dword [esi + 0x10eac], 0x7d0
mov dword [esi + 0x1245c], ebp
jge 0x448885
mov ebp, 1
xor ebx, ebx
jmp 0x446ff3
mov eax, dword [esi + 0x1246c]
cmp eax, ebx
je 0x446ff3
cmp eax, 0xffffffff
je 0x446ff3
mov dword [esi + 0x10eac], eax
mov dword [esi + 0x1245c], ebp
cmp dword [esi + 0x12464], ebx
je 0x447036
add esi, 0x1ed0
lea edi, [esi + 4]
push edi
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
add esp, 4
cmp dword [esi + 8], ebx
je 0x447016
mov dword [esi + 0x14], ebp
push edi
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
add esp, 4
call fcn.004729a0
call fcn.00458d80
mov esi, dword [0x52b40c]
mov dword [esi + 0x12464], ebx
cmp dword [esi + 0x12468], ebx
je 0x447081
add esi, 0x1ed0
lea edi, [esi + 4]
push edi
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
add esp, 4
cmp dword [esi + 8], ebx
je 0x447059
mov dword [esi + 0x14], ebp
push edi
call dword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
add esp, 4
call fcn.004729a0
call fcn.004585e0
test eax, eax
je 0x448878
mov esi, dword [0x52b40c]
mov dword [esi + 0x12468], ebx
mov eax, dword [esi + 0x80bc]
mov edi, dword [eax]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x1c]
shl ecx, 4
push ecx
push ebx
push edx
call sub.MSVCR90.dll_memset
mov dword [edi + 8], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x20], ebx
fild dword [esi + 0x10f10]
add esp, 0xc
fmul dword [esi + 0x1b74]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fadd dword [esi + 0x10ef8]
fstp dword [esp + 0x24]
fild dword [esi + 0x10f14]
fmul dword [esi + 0x1b74]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fadd dword [esi + 0x10efc]
fstp dword [esp + 0x2c]
cmp dword [esi + 0x10ebc], ebx
jne 0x447115
mov dword [esi + 0x11698], 0xffffffff
mov eax, ebp
lea ecx, [esi + 0x116d8]
nop
cmp dword [ecx], ebx
jg 0x44710f
sub eax, ebp
sub ecx, 0x24
cmp eax, ebx
jge 0x447100
jmp 0x447115
mov dword [esi + 0x11698], eax
call fcn.0044b4c0
mov esi, dword [0x52b40c]
mov ecx, dword [esi + 0x116fc]
cmp ecx, ebx
jle 0x44714d
cmp dword [esi + 0x10ebc], ebx
jne 0x447399
mov eax, dword [esi + 0x11700]
cmp eax, ebx
jg 0x447144
add eax, ecx
jmp 0x447147
add eax, 0xffffff9c
mov dword [esi + 0x11700], eax
cmp dword [esi + 0x10ebc], ebx
jne 0x447399
call fcn.00471fc0
cmp dword [esi + 0x10ebc], ebx
jne 0x447399
mov eax, dword [esi + 0x11698]
cmp eax, 0xffffffff
je 0x447399
lea eax, [eax + eax*8]
lea ebp, [esi + eax*4]
mov eax, dword [ebp + 0x116b4]
mov dword [esp + 0x14], ebp
test eax, eax
jle 0x447399
cmp dword [esi + 0x11700], 0
jne 0x4471a1
dec eax
mov dword [ebp + 0x116b4], eax
cmp dword [ebp + 0x116b4], 0
je 0x447399
cmp dword [ebp + 0x116b0], 0
je 0x447399
mov edx, dword [esi + 0x80c0]
xor eax, eax
mov ecx, eax
or ecx, 0xb00
xor edi, edi
cmp dword [edx + 8], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
jle 0x4472b3
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
xor ebp, ebp
mov eax, dword [edx]
mov ecx, dword [eax + ebp + 4]
add eax, ebp
mov dword [esp + 0x98], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x9c], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xa0], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0xa4], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xa8], ecx
xor ecx, ecx
jmp 0x447250
mov ebx, dword [esp + ecx + 0x98]
test dword [esp + ecx + 0x84], ebx
jne 0x44726a
add ecx, 4
cmp ecx, 0x14
jl 0x447250
jmp 0x4472a2
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
lea ecx, [ecx + ecx*4]
shl ecx, 4
sar ecx, 8
mov dword [eax + 0x1c], ecx
mov ecx, dword [eax + 0x20]
lea ecx, [ecx + ecx*4]
shl ecx, 4
sar ecx, 8
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x24]
shl ecx, 7
sar ecx, 8
mov dword [eax + 0x24], ecx
mov ecx, dword [eax + 0x54]
and ecx, 0xfffffffb
or ecx, 1
mov dword [eax + 0x54], ecx
inc edi
add ebp, 0x18
cmp edi, dword [edx + 8]
jl 0x44720f
mov ebp, dword [esp + 0x14]
mov edx, dword [esi + 0x80c0]
xor ebx, ebx
cmp dword [edx + 8], ebx
jle 0x447399
mov eax, dword [ebp + 0x1169c]
mov ecx, dword [ebp + 0x116a0]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x116a4]
mov dword [esp + 0x74], ecx
mov ecx, dword [ebp + 0x116a8]
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x116ac]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
xor edi, edi
jmp 0x447300
mov eax, dword [edx]
mov ecx, dword [eax + edi + 4]
add eax, edi
mov dword [esp + 0xac], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0xb0], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xb4], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0xb8], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0xbc], ecx
xor ecx, ecx
lea esp, [esp]
mov ebp, dword [esp + ecx + 0xac]
test dword [esp + ecx + 0x70], ebp
jne 0x447357
add ecx, 4
cmp ecx, 0x14
jl 0x447340
jmp 0x44738c
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
shl ecx, 7
sar ecx, 8
mov dword [eax + 0x1c], ecx
mov ecx, dword [eax + 0x20]
shl ecx, 7
sar ecx, 8
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x24]
lea ecx, [ecx + ecx*2]
shl ecx, 6
sar ecx, 8
mov dword [eax + 0x24], ecx
mov ecx, dword [eax + 0x54]
and ecx, 0xfffffffb
or ecx, 1
mov dword [eax + 0x54], ecx
inc ebx
add edi, 0x18
cmp ebx, dword [edx + 8]
jl 0x447300
xor eax, eax
push 1
push eax
mov edx, eax
sub esp, 0x14
mov ecx, esp
or edx, 0x100
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea edx, [esi + 0x10e14]
mov dword [ecx + 0xc], eax
push edx
mov dword [ecx + 0x10], eax
call fcn.00472470
mov edi, dword [esi + 0x11434]
add esp, 0x20
cmp edi, dword [esi + 0x11430]
jl 0x4474af
lea ebx, [esi + edi*4 + 0x11230]
mov eax, dword [ebx]
test eax, eax
je 0x44749f
cmp dword [eax + 0x1b0], 0
je 0x44749f
mov ecx, dword [eax + 0x1424]
mov edx, dword [eax + 0x1428]
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0x142c]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 0x1434]
mov dword [esp + 0x5c], edx
mov edx, dword [eax + 0x1430]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
xor ecx, ecx
lea esp, [esp]
cmp dword [esp + ecx*4 + 0x58], 0
jne 0x44743f
inc ecx
cmp ecx, 5
jl 0x447430
jmp 0x44749f
mov ecx, dword [esi + 0x11698]
cmp ecx, 0xffffffff
je 0x447458
cmp dword [eax + ecx*4 + 0x228], 0
jne 0x447458
xor ecx, ecx
jmp 0x44745d
mov ecx, 1
mov edx, dword [eax + 0x1424]
push ecx
push 0
sub esp, 0x14
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 0x1428]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x142c]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0x1430]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x1434]
add eax, 0x1438
push eax
mov dword [ecx + 0x10], edx
call fcn.00472470
add esp, 0x20
dec edi
sub ebx, 4
cmp edi, dword [esi + 0x11430]
jge 0x4473e1
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push 1
push 1
sub esp, 0x14
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
add esi, 0x10e50
mov dword [eax + 0xc], edx
push esi
mov dword [eax + 0x10], ecx
call fcn.00472470
add esp, 0x20
call fcn.00448ac0
mov esi, dword [0x52b40c]
test eax, eax
jne 0x448852
xor ebx, ebx
cmp dword [esi + 0x10ebc], ebx
jne 0x447528
mov ebp, dword [esi + 0xfcb4]
xor edi, edi
cmp dword [ebp + 4], ebx
jle 0x447528
mov eax, edi
mov ecx, ebp
call fcn.00444bc0
inc edi
cmp edi, dword [ebp + 4]
jl 0x447513
mov esi, dword [0x52b40c]
cmp dword [esi + 0x10ebc], ebx
jne 0x447549
cmp dword [esi + 0x11700], ebx
jne 0x447549
mov eax, dword [esi + 0x80e0]
cmp eax, ebx
jle 0x447549
dec eax
mov dword [esi + 0x80e0], eax
cmp dword [esi + 0xfcac], ebx
je 0x447562
cmp byte [esi + 0x11660], 0
mov dword [esp + 0x14], 1
je 0x447566
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x11668], ebx
je 0x44757a
cmp dword [esi + 0x11688], ebx
jne 0x44757a
mov dword [esp + 0x14], ebx
call fcn.00456e10
test eax, eax
jne 0x44773f
mov edi, dword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
cmp dword [0x4aa254], ebx
jne 0x44759d
mov ebp, dword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
jmp 0x4475d0
push 0x4aa294
call edi
mov edx, dword [0x52a438]
mov ebp, dword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
mov esi, dword [edx + 0x248]
add esp, 4
push 0x4aa294
call ebp
xor eax, eax
add esp, 4
cmp esi, ebx
mov esi, dword [0x52b40c]
setne al
test al, 1
jne 0x44766d
cmp byte [esi + 0x1165d], 0
je 0x44766d
cmp dword [0x4aa254], ebx
je 0x447675
push 0x4aa294
call edi
add esp, 4
call dword [0x4aa278]
mov edx, dword [0x4aa288]
mov esi, 1
cmp edx, 0x10
jne 0x447621
push eax
push str.BGM_command_queue_capacity_exceeded_at_time__ld
call fcn.00444320
add esp, 8
jmp 0x447657
lea ecx, [edx + edx*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [ecx + 0x4aa298], 5
mov dword [ecx + 0x4aa29c], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x4aa2a0], esi
inc edx
mov dword [ecx + 0x4aa2a4], eax
mov dword [ecx + 0x4aa2a8], ebx
mov dword [0x4aa288], edx
push 0x4aa294
call ebp
mov dword [0x52a444], esi
mov esi, dword [0x52b40c]
add esp, 4
cmp dword [0x4aa254], ebx
jne 0x447679
xor eax, eax
jmp 0x4476a6
push 0x4aa294
call edi
mov ecx, dword [0x52a438]
mov esi, dword [ecx + 0x248]
add esp, 4
push 0x4aa294
call ebp
xor eax, eax
add esp, 4
cmp esi, ebx
mov esi, dword [0x52b40c]
setne al
test al, 1
je 0x44773f
cmp byte [esi + 0x1165d], 0
jne 0x44773f
cmp dword [0x4aa254], ebx
je 0x44773f
push 0x4aa294
call edi
add esp, 4
call dword [0x4aa278]
mov edx, dword [0x4aa288]
mov esi, 1
cmp edx, 0x10
jne 0x4476f3
push eax
push str.BGM_command_queue_capacity_exceeded_at_time__ld
call fcn.00444320
add esp, 8
jmp 0x447729
lea ecx, [edx + edx*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [ecx + 0x4aa298], 7
mov dword [ecx + 0x4aa29c], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x4aa2a0], esi
inc edx
mov dword [ecx + 0x4aa2a4], eax
mov dword [ecx + 0x4aa2a8], ebx
mov dword [0x4aa288], edx
push 0x4aa294
call ebp
mov dword [0x52a444], esi
mov esi, dword [0x52b40c]
add esp, 4
cmp dword [esi + 0x10eb4], ebx
jne 0x4477dc
mov edi, dword [0x52b34c]
cmp dword [edi + 0x48], ebx
je 0x4477b7
mov eax, 0x24
lea ecx, [edi + 0x24]
mov edx, edi
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x447779
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x447760
mov dword [edi + 0x48], ebx
jmp 0x4477b7
movzx ebp, byte [ecx]
movzx eax, byte [edx]
sub eax, ebp
jne 0x4477a5
movzx eax, byte [edx + 1]
movzx ebp, byte [ecx + 1]
sub eax, ebp
jne 0x4477a5
movzx eax, byte [edx + 2]
movzx ebp, byte [ecx + 2]
sub eax, ebp
jne 0x4477a5
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
cmp eax, ebx
jne 0x4477b4
mov dword [edi + 0x48], ebx
jmp 0x4477b7
inc dword [edi + 0x4c]
cmp dword [esi + 0x80e0], ebx
jne 0x4477dc
cmp byte [esi + 0x11661], 0
jne 0x4477cf
call fcn.0044d150
jmp 0x4477d6
xor ecx, ecx
call fcn.004354b0
mov esi, dword [0x52b40c]
cmp dword [esp + 0x14], ebx
je 0x4477f1
push ebx
call fcn.0044d220
mov esi, dword [0x52b40c]
add esp, 4
mov edi, dword [esi + 0x11234]
mov edx, dword [esi + 0x1123c]
mov ebp, dword [esi + 0x11238]
mov esi, dword [esi + 0x11240]
mov ebx, edi
mov dword [esp + 0x28], edx
call fcn.0044e440
mov ebx, ebp
call fcn.0044e440
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x447828
call fcn.0044e440
test esi, esi
je 0x447833
mov ebx, esi
call fcn.0044e440
call fcn.0044e710
mov edi, ebp
call fcn.0044e710
mov edi, dword [0x52b40c]
cmp dword [edi + 0x10eb4], 0
jne 0x447ba7
cmp dword [edi + 0x80e0], 0
jne 0x447976
cmp byte [edi + 0x1165e], 0
jne 0x44791f
mov esi, dword [edi + 0x11434]
cmp esi, dword [edi + 0x11430]
jl 0x4478cc
lea ebx, [esi*4 + 0x11230]
mov eax, dword [ebx + edi]
test eax, eax
je 0x4478c0
cmp dword [eax + 0x1b0], 0
je 0x4478c0
cmp byte [eax + 0x254], 0
jne 0x4478c0
cmp dword [eax + 0x1f0], 0
je 0x4478c0
lea ecx, [edi + 0x1c38]
push ecx
add edi, 0x1c24
push edi
push eax
call fcn.00470ac0
mov edi, dword [0x52b40c]
add esp, 0xc
dec esi
sub ebx, 4
cmp esi, dword [edi + 0x11430]
jge 0x447881
mov esi, dword [edi + 0x11434]
cmp esi, dword [edi + 0x11430]
jl 0x44790e
lea ebx, [esi*4 + 0x11230]
mov eax, dword [ebx + edi]
test eax, eax
je 0x447902
cmp dword [eax + 0x1b0], 0
je 0x447902
mov eax, dword [eax + 0x268]
call fcn.00473570
mov edi, dword [0x52b40c]
dec esi
sub ebx, 4
cmp esi, dword [edi + 0x11430]
jge 0x4478e1
mov esi, dword [edi + 0xfcb0]
call fcn.00445060
mov edi, dword [0x52b40c]
fld1
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x38]
fadd qword [0x4a6ba0]
fstp qword [esp]
call sub.MSVCR90.dll_floor
call fcn.00499690
fld dword [esp + 0x30]
fadd qword [0x4a6ba0]
mov ebx, eax
neg ebx
fstp qword [esp]
call sub.MSVCR90.dll_floor
add esp, 8
call fcn.00499690
neg eax
push eax
mov eax, dword [edi + 0x80b8]
push 2
call fcn.00402a70
mov edi, dword [0x52b40c]
add esp, 0xc
cmp dword [edi + 0x10eb4], 0
jne 0x447ba7
cmp dword [edi + 0x80e0], 0
jle 0x4479a6
cmp dword [edi + 0x80d8], 0
je 0x4479a6
mov ecx, dword [edi + 0x80dc]
call fcn.004354b0
mov edi, dword [0x52b40c]
mov ebx, dword [edi + 0x11430]
cmp ebx, dword [edi + 0x11434]
jg 0x4479f9
lea ebp, [ebx*4 + 0x11230]
jmp 0x4479c0
mov esi, dword [edi + ebp]
test esi, esi
je 0x4479ed
cmp dword [esi + 0x1b0], 0
je 0x4479ed
cmp dword [esi + 0x1f0], 0
je 0x4479ed
fld1
push ecx
fstp dword [esp]
call fcn.00470860
mov edi, dword [0x52b40c]
add esp, 4
inc ebx
add ebp, 4
cmp ebx, dword [edi + 0x11434]
jle 0x4479c0
mov esi, dword [edi + 0x11434]
cmp esi, dword [edi + 0x11430]
jl 0x447a3d
lea ebx, [esi*4 + 0x11230]
mov edi, edi
mov eax, dword [ebx + edi]
test eax, eax
je 0x447a31
cmp dword [eax + 0x1b0], 0
je 0x447a31
mov eax, dword [eax + 0x268]
call fcn.004734a0
mov edi, dword [0x52b40c]
dec esi
sub ebx, 4
cmp esi, dword [edi + 0x11430]
jge 0x447a10
mov esi, dword [edi + 0xfcb0]
xor ebx, ebx
xor ebp, ebp
cmp dword [esi + 4], ebx
jle 0x447a84
xor edi, edi
mov eax, dword [esi]
add eax, edi
cmp ebp, dword [esi + 8]
jg 0x447a7e
cmp dword [eax], 0
je 0x447a72
inc ebp
cmp dword [eax + 0x60], 0
jne 0x447a72
cmp dword [eax + 8], 0
jne 0x447a72
push eax
call fcn.00444d90
add esp, 4
inc ebx
add edi, 0x108
cmp ebx, dword [esi + 4]
jl 0x447a4e
mov edi, dword [0x52b40c]
mov ebx, dword [edi + 0x11434]
cmp ebx, dword [edi + 0x11430]
jl 0x447b2c
lea ebp, [edi + ebx*4 + 0x11230]
lea ecx, [ecx]
mov eax, dword [ebp]
test eax, eax
je 0x447b1c
cmp dword [eax + 0x1b0], 0
je 0x447b1c
mov esi, dword [eax + 0x13f0]
test esi, esi
je 0x447b0e
mov edx, dword [eax + 0x218]
fld dword [edi + 0x10efc]
fadd qword [0x4a6ba0]
push edx
sub esp, 8
fstp qword [esp]
call sub.MSVCR90.dll_floor
add esp, 8
call fcn.00499690
fld dword [edi + 0x10ef8]
fadd qword [0x4a6ba0]
neg eax
push eax
sub esp, 8
fstp qword [esp]
call sub.MSVCR90.dll_floor
add esp, 8
call fcn.00499690
neg eax
push eax
push esi
call fcn.00437a30
add esp, 0x10
mov eax, dword [ebp]
mov eax, dword [eax + 0x268]
call fcn.0044ea20
dec ebx
sub ebp, 4
cmp ebx, dword [edi + 0x11430]
jge 0x447aa0
mov ebp, dword [edi + 0x80bc]
mov esi, dword [ebp]
xor ebx, ebx
cmp dword [esi + 8], ebx
jle 0x447b60
lea esp, [esp]
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + ebx*4]
imul eax, dword [esi + 4]
add eax, dword [esi + 0x18]
je 0x447b54
call fcn.00402650
inc ebx
cmp ebx, dword [esi + 8]
jl 0x447b40
mov edi, dword [0x52b40c]
mov esi, dword [edi + 0xfcb0]
xor ebx, ebx
xor ebp, ebp
cmp dword [esi + 4], ebx
jle 0x447ba7
xor edi, edi
mov eax, dword [esi]
add eax, edi
cmp ebp, dword [esi + 8]
jg 0x447ba1
cmp dword [eax], 0
je 0x447b95
inc ebp
cmp dword [eax + 0x60], 1
jne 0x447b95
cmp dword [eax + 8], 0
jne 0x447b95
push eax
call fcn.00444d90
add esp, 4
inc ebx
add edi, 0x108
cmp ebx, dword [esi + 4]
jl 0x447b71
mov edi, dword [0x52b40c]
cmp dword [esp + 0x14], 0
je 0x447bbe
push 1
call fcn.0044d220
mov edi, dword [0x52b40c]
add esp, 4
cmp dword [edi + 0x10eb4], 0
jne 0x447be1
cmp byte [edi + 0x11662], 0
jne 0x447be1
mov edx, dword [edi + 0x10e10]
push 1
push edx
call fcn.00405cc0
add esp, 8
call fcn.0044b130
mov esi, dword [0x52b40c]
cmp dword [esi + 0x10eb4], 0
jne 0x447cba
cmp dword [esi + 0x80e0], 0
jle 0x447c1c
cmp dword [esi + 0x80d8], 0
jne 0x447c1c
mov ecx, dword [esi + 0x80dc]
call fcn.004354b0
mov esi, dword [0x52b40c]
fld1
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x38]
fadd qword [0x4a6ba0]
fstp qword [esp]
call sub.MSVCR90.dll_floor
call fcn.00499690
fld dword [esp + 0x30]
fadd qword [0x4a6ba0]
mov ebx, eax
neg ebx
fstp qword [esp]
call sub.MSVCR90.dll_floor
add esp, 8
call fcn.00499690
neg eax
push eax
mov eax, dword [esi + 0x80b8]
push 1
call fcn.00402a70
mov esi, dword [0x52b40c]
mov edi, dword [esi + 0xfcb0]
xor ebx, ebx
add esp, 0xc
xor ebp, ebp
cmp dword [edi + 4], ebx
jle 0x447cba
xor esi, esi
mov eax, dword [edi]
add eax, esi
cmp ebp, dword [edi + 8]
jg 0x447cb4
cmp dword [eax], 0
je 0x447ca8
inc ebp
cmp dword [eax + 0x60], 2
jne 0x447ca8
cmp dword [eax + 8], 0
jne 0x447ca8
push eax
call fcn.00444d90
add esp, 4
inc ebx
add esi, 0x108
cmp ebx, dword [edi + 4]
jl 0x447c84
mov esi, dword [0x52b40c]
cmp dword [esp + 0x14], 0
mov ebp, 1
je 0x447cd6
push 2
call fcn.0044d220
mov esi, dword [0x52b40c]
add esp, 4
cmp dword [esi + 0x10eb4], 0
jne 0x4484ca
cmp dword [esi + 0x12054], 0
je 0x447d87
mov edi, dword [esi + 0x11434]
cmp edi, dword [esi + 0x11430]
jl 0x447d37
lea ebx, [edi*4 + 0x11230]
mov eax, dword [ebx + esi]
test eax, eax
je 0x447d2a
cmp dword [eax + 0x1b0], 0
je 0x447d2a
fld1
push ecx
fstp dword [esp]
push eax
call fcn.004710b0
mov esi, dword [0x52b40c]
add esp, 8
sub edi, ebp
sub ebx, 4
cmp edi, dword [esi + 0x11430]
jge 0x447d05
mov edi, dword [esi + 0x11434]
cmp edi, dword [esi + 0x11430]
jl 0x447d87
lea ebx, [edi*4 + 0x11230]
lea esp, [esp]
mov eax, dword [ebx + esi]
test eax, eax
je 0x447d7a
cmp dword [eax + 0x1b0], 0
je 0x447d7a
fld1
mov eax, dword [eax + 0x268]
push ecx
fstp dword [esp]
call fcn.00473a50
mov esi, dword [0x52b40c]
add esp, 4
sub edi, ebp
sub ebx, 4
cmp edi, dword [esi + 0x11430]
jge 0x447d50
cmp dword [esi + 0xfcac], 0
je 0x448177
lea eax, [esi + 0x11810]
lea edi, [esi + 0xdecc]
mov esi, dword [eax + 0xc]
cmp esi, 2
mov dword [esp + 0x18], eax
jl 0x448162
mov edx, dword [eax + 0x10]
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.MSVCR90.dll__snprintf]
push esi
lea eax, [edi + 0x194]
push eax
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x108]
push 0x40
push ecx
mov dword [esp + 0x3c], edx
call ebx
mov ebp, dword [sym.imp.MSVCR90.dll_strncat]
push 0x40
lea edx, [esp + 0x114]
lea eax, [edi + 0x13c]
push edx
push eax
mov byte [eax], 0
call ebp
add esp, 0x1c
push esi
lea eax, [edi + 0xb4]
push eax
lea ecx, [esp + 0xc8]
push 0x40
push ecx
call ebx
push 0x40
lea edx, [esp + 0xd4]
lea eax, [edi + 0x5c]
push edx
push eax
mov byte [eax], 0
call ebp
mov esi, dword [edi + 0x18]
mov edx, dword [0x52b40c]
add esp, 0x1c
xor eax, eax
cmp esi, 0xffffffff
je 0x447e63
cmp dword [edx + esi*4 + 0x80f8], eax
je 0x447e63
mov ebx, dword [edx + esi*4 + 0x80f8]
lea ecx, [esp + 0xc0]
call fcn.00410830
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul dword [edi + 0x54]
call fcn.00499690
mov edx, dword [0x52b40c]
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [edx + 0x80f4]
push eax
lea eax, [edx + 0x80f8]
push eax
mov eax, dword [edx + 0x80f0]
mov edx, dword [edx + 0xfcb4]
push ecx
push eax
lea ecx, [edi + 0xf4]
push ecx
push edx
call fcn.00446790
mov ebx, dword [0x52b40c]
mov esi, eax
add esp, 0x1c
test esi, esi
jl 0x447f67
fld1
sub esp, 8
fstp dword [esp + 4]
fld dword [ebx + 0x1012c]
fstp dword [esp]
call fcn.00446b80
mov eax, dword [ebx + 0xfcb4]
add esp, 8
mov dword [esp + 0x14], eax
cmp esi, 0xffffffff
je 0x447f67
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx]
mov eax, esi
imul eax, eax, 0x108
add ebp, eax
cmp dword [ebp + 0x3c], 0
mov dword [esp + 0x28], eax
jne 0x447f04
cmp dword [ebp + 4], 1
jne 0x447f04
mov eax, esi
call fcn.00444bc0
mov ebx, dword [0x52b40c]
cmp dword [ebx + 0x10eb4], 0
jne 0x447f1c
push ebp
call fcn.00444d90
mov ebx, dword [0x52b40c]
add esp, 4
mov dword [ebp + 8], 1
mov ebp, dword [ebp + 0x40]
cmp ebp, 1
jg 0x447f67
cmp ebp, 0xffffffff
je 0x447f67
mov edx, dword [esp + 0x14]
mov esi, dword [edx]
add esi, dword [esp + 0x28]
cmp dword [esi], 0
je 0x447f67
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x447f53
mov ebx, eax
call fcn.00417520
mov ebx, dword [0x52b40c]
xor eax, eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x90], eax
mov dword [esi], eax
mov eax, dword [esp + 0x14]
dec dword [eax + 8]
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [edi + 0x10], eax
je 0x448086
mov esi, dword [edi + 0xc]
mov ecx, dword [esp + 0x18]
mov ebp, dword [ecx]
lea edx, [esi - 1]
cmp ebp, edx
jne 0x447fbc
fld dword [ebx + 0x11840]
call fcn.00499690
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fld qword [0x4a6ca0]
fdiv st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fadd dword [0x4a6bac]
call fcn.00499690
mov dword [esp + 0x14], eax
jmp 0x447fc2
fld qword [0x4a6ca0]
lea ecx, [esi - 2]
cmp ebp, ecx
jne 0x447ff5
fld dword [ebx + 0x11840]
call fcn.00499690
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fadd st(0), st(0)
fdiv st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fiadd dword [esp + 0x14]
call fcn.00499690
mov dword [esp + 0x14], eax
lea edx, [esi - 3]
cmp ebp, edx
jne 0x448026
fld dword [ebx + 0x11840]
call fcn.00499690
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fdiv st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fiadd dword [esp + 0x14]
call fcn.00499690
mov dword [esp + 0x14], eax
lea ecx, [esi - 5]
cmp ebp, ecx
jne 0x448057
fld dword [ebx + 0x11840]
call fcn.00499690
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fdiv st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fiadd dword [esp + 0x14]
call fcn.00499690
mov dword [esp + 0x14], eax
add esi, 0xfffffff9
cmp ebp, esi
jne 0x448084
fld dword [ebx + 0x11840]
call fcn.00499690
mov dword [esp + 0x18], eax
fidivr dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fiadd dword [esp + 0x14]
call fcn.00499690
jmp 0x448086
fstp st(0)
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push edx
add eax, ecx
mov ecx, dword [ebx + 0x80f0]
push eax
mov eax, dword [ebx + 0x80f4]
lea edx, [ebx + 0x80f8]
push edx
mov edx, dword [ebx + 0xfcb4]
push eax
push ecx
add edi, 0x14
push edi
push edx
call fcn.00446790
mov esi, eax
add esp, 0x1c
test esi, esi
jl 0x448162
fld1
mov edi, dword [0x52b40c]
sub esp, 8
fstp dword [esp + 4]
fld dword [edi + 0x1012c]
fstp dword [esp]
call fcn.00446b80
mov ebp, dword [edi + 0xfcb4]
add esp, 8
cmp esi, 0xffffffff
je 0x448162
mov edi, dword [ebp]
mov ebx, esi
imul ebx, ebx, 0x108
add edi, ebx
cmp dword [edi + 0x3c], 0
jne 0x448111
cmp dword [edi + 4], 1
jne 0x448111
mov eax, esi
mov ecx, ebp
call fcn.00444bc0
mov eax, dword [0x52b40c]
cmp dword [eax + 0x10eb4], 0
jne 0x448128
push edi
call fcn.00444d90
add esp, 4
mov dword [edi + 8], 1
mov edi, dword [edi + 0x40]
cmp edi, 1
jg 0x448162
cmp edi, 0xffffffff
je 0x448162
mov esi, dword [ebp]
add esi, ebx
cmp dword [esi], 0
je 0x448162
mov ebx, dword [esi + 0x7c]
test ebx, ebx
je 0x448152
call fcn.00417520
xor eax, eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x90], eax
mov dword [esi], eax
dec dword [ebp + 8]
mov eax, 2
call fcn.0044c9e0
mov esi, dword [0x52b40c]
mov ebp, 1
cmp dword [esi + 0x10eec], 0
je 0x44849a
mov ecx, dword [esi + 0x10ef0]
mov eax, dword [0x52be10]
push 0
push ecx
push 0
xor ecx, ecx
call fcn.00436870
mov edx, dword [0x52b3ac]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0xc
add eax, dword [ecx + 0x18]
je 0x4481bf
cmp dword [eax + 0x1c], ebp
jne 0x4481bf
mov eax, dword [eax + 0x24]
jmp 0x4481c1
xor eax, eax
mov eax, dword [eax + 4]
push 0x80
push 0x80
push 0x80
push eax
call sub.SDL.dll_SDL_MapRGB
mov ecx, dword [0x52b40c]
mov edx, dword [ecx + 0x10ef0]
lea ecx, [edx + 4]
push ecx
push edx
mov ecx, eax
mov eax, dword [0x52be10]
xor edx, edx
call fcn.00436ca0
mov edx, dword [0x52b3ac]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0x18
add eax, dword [ecx + 0x18]
je 0x44821c
cmp dword [eax + 0x1c], ebp
jne 0x44821c
mov eax, dword [eax + 0x24]
jmp 0x44821e
xor eax, eax
mov eax, dword [eax + 4]
push 0x60
push 0x60
push 0x60
push eax
call sub.SDL.dll_SDL_MapRGB
mov ecx, dword [0x52b40c]
mov edx, dword [ecx + 0x10ef0]
lea ecx, [edx + 9]
push ecx
add edx, 5
push edx
mov ecx, eax
mov eax, dword [0x52be10]
xor edx, edx
call fcn.00436ca0
mov edx, dword [0x52b3ac]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0x18
add eax, dword [ecx + 0x18]
je 0x448273
cmp dword [eax + 0x1c], ebp
jne 0x448273
mov eax, dword [eax + 0x24]
jmp 0x448275
xor eax, eax
mov eax, dword [eax + 4]
push 0x40
push 0x40
push 0x40
push eax
call sub.SDL.dll_SDL_MapRGB
mov ecx, dword [0x52b40c]
mov edx, dword [ecx + 0x10ef0]
lea ecx, [edx + 0xe]
push ecx
add edx, 0xa
push edx
mov ecx, eax
mov eax, dword [0x52be10]
xor edx, edx
call fcn.00436ca0
mov edx, dword [0x52b3ac]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0x18
add eax, dword [ecx + 0x18]
je 0x4482ca
cmp dword [eax + 0x1c], ebp
jne 0x4482ca
mov eax, dword [eax + 0x24]
jmp 0x4482cc
xor eax, eax
mov eax, dword [eax + 4]
push 0x20
push 0x20
push 0x20
push eax
call sub.SDL.dll_SDL_MapRGB
mov esi, dword [0x52b40c]
mov edx, dword [esi + 0x10ef0]
mov edi, dword [0x52be10]
lea ecx, [edx + 0x13]
push ecx
add edx, 0xf
push edx
mov ecx, eax
mov eax, edi
xor edx, edx
call fcn.00436ca0
mov eax, dword [0x52be24]
lea edx, [eax - 1]
sub eax, dword [esi + 0x10ef0]
push 0
sub eax, ebp
push edx
push eax
mov eax, edi
xor ecx, ecx
call fcn.00436870
mov eax, dword [0x52b3ac]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0x24
add eax, dword [ecx + 0x18]
je 0x448340
cmp dword [eax + 0x1c], ebp
jne 0x448340
mov eax, dword [eax + 0x24]
jmp 0x448342
xor eax, eax
mov ecx, dword [eax + 4]
push 0x80
push 0x80
push 0x80
push ecx
call sub.SDL.dll_SDL_MapRGB
mov ecx, dword [0x52b40c]
mov edx, dword [0x52be24]
sub edx, dword [ecx + 0x10ef0]
lea ecx, [edx - 5]
push ecx
dec edx
push edx
mov ecx, eax
mov eax, dword [0x52be10]
xor edx, edx
call fcn.00436ca0
mov edx, dword [0x52b3ac]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0x18
add eax, dword [ecx + 0x18]
je 0x4483a4
cmp dword [eax + 0x1c], ebp
jne 0x4483a4
mov eax, dword [eax + 0x24]
jmp 0x4483a6
xor eax, eax
mov eax, dword [eax + 4]
push 0x60
push 0x60
push 0x60
push eax
call sub.SDL.dll_SDL_MapRGB
mov ecx, dword [0x52b40c]
mov edx, dword [0x52be24]
sub edx, dword [ecx + 0x10ef0]
lea ecx, [edx - 0xa]
push ecx
add edx, 0xfffffffa
push edx
mov ecx, eax
mov eax, dword [0x52be10]
xor edx, edx
call fcn.00436ca0
mov edx, dword [0x52b3ac]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0x18
add eax, dword [ecx + 0x18]
je 0x448401
cmp dword [eax + 0x1c], ebp
jne 0x448401
mov eax, dword [eax + 0x24]
jmp 0x448403
xor eax, eax
mov eax, dword [eax + 4]
push 0x40
push 0x40
push 0x40
push eax
call sub.SDL.dll_SDL_MapRGB
mov ecx, dword [0x52b40c]
mov edx, dword [0x52be24]
sub edx, dword [ecx + 0x10ef0]
lea ecx, [edx - 0xf]
push ecx
add edx, 0xfffffff5
push edx
mov ecx, eax
mov eax, dword [0x52be10]
xor edx, edx
call fcn.00436ca0
mov edx, dword [0x52b3ac]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0x18
add eax, dword [ecx + 0x18]
je 0x44845e
cmp dword [eax + 0x1c], ebp
jne 0x44845e
mov eax, dword [eax + 0x24]
jmp 0x448460
xor eax, eax
mov eax, dword [eax + 4]
push 0x20
push 0x20
push 0x20
push eax
call sub.SDL.dll_SDL_MapRGB
mov edx, dword [0x52be24]
mov esi, dword [0x52b40c]
sub edx, dword [esi + 0x10ef0]
lea ecx, [edx - 0x14]
push ecx
add edx, 0xfffffff0
push edx
mov ecx, eax
mov eax, dword [0x52be10]
xor edx, edx
call fcn.00436ca0
add esp, 0x18
cmp dword [esi + 0x12048], 0
je 0x4484ca
cmp dword [esi + 0x11668], 0
je 0x4484b5
cmp dword [esi + 0x1168c], 0
je 0x4484ca
mov edx, dword [esi + 0x12040]
push edx
call fcn.0044eef0
mov esi, dword [0x52b40c]
add esp, 4
xor edi, edi
cmp dword [esi + 0x10eec], edi
je 0x448512
cmp dword [esi + 0x10ebc], edi
jne 0x44863e
mov eax, dword [esi + 0x10ef4]
add dword [esi + 0x10ef0], eax
cmp eax, edi
mov ecx, dword [esi + 0x10ef0]
jge 0x4484fc
cmp ecx, edi
jl 0x44850c
cmp eax, edi
jle 0x448512
mov eax, dword [0x52be24]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
jle 0x448512
mov dword [esi + 0x10eec], edi
cmp dword [esi + 0x10ebc], edi
jne 0x44863e
cmp dword [esi + 0x11700], edi
jne 0x44863e
cmp dword [esi + 0x11824], edi
jne 0x448538
mov dword [esi + 0x11814], edi
mov ebp, dword [esi + 0x11810]
xor ebx, ebx
cmp ebp, ebx
mov dword [esi + 0x11824], ebx
jle 0x4485a0
mov ecx, dword [esi + 0x11820]
mov eax, dword [esi + 0xdecc]
cmp ecx, eax
je 0x448599
mov edi, dword [esi + 0x11820]
xor edx, edx
cmp ecx, eax
setl dl
sub eax, edi
lea edx, [edx + edx - 1]
mov ecx, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, ecx
add eax, edi
mov dword [esi + 0x11820], eax
mov edx, dword [esi + 0xdecc]
mov edi, edx
sub edi, eax
imul edi, ecx
test edi, edi
jge 0x448599
mov dword [esi + 0x11820], edx
dec ebp
mov dword [esi + 0x11810], ebp
cmp dword [esi + 0x11814], 2
jge 0x44862f
cmp dword [esi + 0x11810], ebx
jne 0x44862f
mov eax, dword [esi + 0x11820]
mov ecx, dword [esi + 0xded4]
cmp eax, ecx
je 0x44862f
fld dword [esi + 0x11840]
xor edx, edx
cmp eax, ecx
setl dl
lea edx, [edx + edx - 1]
mov edi, edx
mov dword [esp + 0x28], edi
call fcn.00499690
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x4a6ca8]
fdiv qword [0x4a6ca0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fimul dword [esp + 0x28]
fiadd dword [esi + 0x11820]
call fcn.00499690
mov dword [esi + 0x11820], eax
mov ecx, dword [esi + 0xded4]
mov edx, ecx
sub edx, eax
imul edx, edi
test edx, edx
jg 0x44862f
mov dword [esi + 0x11820], ecx
mov dword [esi + 0x1181c], ebx
mov eax, 2
call fcn.0044cd70
mov ebp, 1
cmp dword [esi + 0x10ebc], 0
je 0x4487d9
cmp dword [esi + 0x11654], 0
jne 0x4487d9
cmp dword [esi + 0x11df0], 0
jne 0x4487ce
mov eax, dword [0x52be10]
cdq
sub eax, edx
mov esi, eax
push 0x400
lea eax, [esp + 0x144]
push str.PAUSED
sar esi, 1
push eax
mov dword [esp + 0x24], esi
mov byte [esp + 0x14c], 0
call dword [sym.imp.MSVCR90.dll_strncat]
mov ecx, dword [0x52b3ac]
mov ecx, dword [ecx]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0xc
add eax, dword [ecx + 0x18]
je 0x4486b9
cmp dword [eax + 0x1c], ebp
jne 0x4486b9
mov eax, dword [eax + 0x24]
jmp 0x4486bb
xor eax, eax
mov edx, dword [eax + 4]
push 0x80
push 0x50
push 0x50
push edx
call sub.SDL.dll_SDL_MapRGB
push 0x1b
lea ecx, [esi + 0x1b]
push ecx
lea edx, [esi - 0x1b]
push 8
push edx
mov ecx, eax
call fcn.00436720
mov eax, dword [0x52b3ac]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0x20
add eax, dword [ecx + 0x18]
je 0x448703
cmp dword [eax + 0x1c], ebp
jne 0x448703
mov eax, dword [eax + 0x24]
jmp 0x448705
xor eax, eax
mov ecx, dword [eax + 4]
push pe_nt_image_headers32
push 0xc0
push 0xc0
push ecx
call sub.SDL.dll_SDL_MapRGB
push 0x1a
lea edx, [esi + 0x1a]
push edx
lea ecx, [esi - 0x1a]
push 9
push ecx
mov ecx, eax
call fcn.00436720
mov edx, dword [0x52b3ac]
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
imul eax, dword [0x52b3b0]
add esp, 0x20
add eax, dword [ecx + 0x18]
je 0x448754
cmp dword [eax + 0x1c], ebp
jne 0x448754
mov eax, dword [eax + 0x24]
jmp 0x448756
xor eax, eax
mov eax, dword [eax + 4]
push 0x18
push 0
push 0
push eax
call sub.SDL.dll_SDL_MapRGB
push 0x19
lea edi, [esi + 0x19]
mov ecx, eax
push 0xa
lea edx, [esi - 0x19]
mov eax, edi
call fcn.00436b10
fld1
mov ecx, dword [0x52b40c]
mov ebx, dword [ecx + 0x80ac]
add esp, 0x18
push 0x100
push 0x100
push 0x100
push 0
push 0
sub esp, 0x10
fst dword [esp + 0xc]
lea eax, [esp + 0x164]
fstp dword [esp + 8]
fld dword [0x4a6d34]
fstp dword [esp + 4]
fild dword [esp + 0x3c]
fstp dword [esp]
call fcn.0040f830
add esp, 0x24
mov ebp, 1
jmp 0x4487d3
call fcn.0045f280
mov esi, dword [0x52b40c]
cmp dword [esi + 0x1245c], 0
jne 0x4487ed
call fcn.00437730
mov esi, dword [0x52b40c]
mov eax, dword [esi + 0x10eb4]
test eax, eax
je 0x4487ff
add dword [esp + 0x38], ebp
test eax, eax
jne 0x448810
mov ebx, dword [esi + 0x80a4]
call fcn.004351b0
mov esi, dword [0x52b40c]
xor ebx, ebx
cmp dword [esi + 0x10eb4], ebx
jne 0x448833
mov eax, dword [0x52b34c]
cmp dword [eax + 0x48], ebx
je 0x448833
lea edi, [eax + 0x24]
mov ecx, 9
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x48], ebx
call fcn.004447c0
mov esi, dword [0x52b40c]
mov dword [esi + 0x10eb8], ebx
cmp dword [esi + 0x10ebc], ebx
jne 0x448852
inc dword [esi + 0x10ea8]
call fcn.00456e10
test eax, eax
jne 0x448863
cmp dword [esi + 0x117e8], eax
jne 0x448885
cmp dword [esi + 0x809c], 0
jne 0x448885
mov ebp, 1
xor ebx, ebx
jmp 0x446fa7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x530
ret
add esi, 0x1ed0
cmp dword [esi], 0
je 0x4488f0
mov ebp, dword [sym.imp.pthreadVC2.dll_pthread_mutex_lock]
lea edi, [esi + 4]
push edi
call ebp
mov ebx, dword [sym.imp.pthreadVC2.dll_pthread_mutex_unlock]
mov esi, dword [esi + 8]
add esp, 4
push edi
call ebx
add esp, 4
test esi, esi
je 0x4488f0
mov eax, dword [0x52b40c]
cmp dword [eax + 0x809c], 0
jne 0x4488c9
cmp dword [eax + 0x4a14], 0
jne 0x4488f0
lea esi, [eax + 0x1ed0]
lea edi, [esi + 4]
push edi
call ebp
add esp, 4
cmp dword [esi + 8], 0
je 0x4488e5
mov dword [esi + 0x14], 1
push edi
call ebx
add esp, 4
call fcn.004729a0
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
xor ebp, ebp
cmp dword [0x52b3cc], ebp
je 0x44891b
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 0x18]
sub esi, dword [0x52aeb0]
mov ecx, dword [esp + 0x1c]
jmp 0x448927
call ebx
xor ecx, ecx
sub eax, dword [0x52aeb0]
mov esi, eax
sbb ecx, dword [0x52aeb4]
mov eax, dword [0x52b84c]
push ecx
cdq
push esi
push edx
push eax
call fcn.0049a610
mov ecx, dword [0x52b844]
push ecx
mov ecx, dword [0x52b840]
push ecx
push edx
push eax
call fcn.0049a560
mov edx, dword [0x52b40c]
mov esi, dword [edx + 0x10ea8]
push str.End_of_game_loop_n
mov edi, eax
call fcn.00444320
mov eax, dword [0x52b40c]
add esp, 4
cmp dword [eax + 0x11b78], ebp
jne 0x448a24
sub edi, dword [esp + 0x50]
mov dword [esp + 0x50], edi
fild dword [esp + 0x50]
test edi, edi
jge 0x448993
fadd qword [0x4a6cb8]
fst qword [esp + 0x50]
sub esp, 8
fidiv dword [0x52b84c]
fstp qword [esp]
push str.Total_time:__.2fs_n
call fcn.00444320
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
add esp, 0xc
mov eax, esi
sub eax, ebp
push edi
push eax
push str.Total_frames:__u__tSkipped_frames:__u_n
mov dword [esp + 0x3c], eax
call fcn.00444320
fild dword [esp + 0x3c]
add esp, 4
fimul dword [0x52b84c]
fdiv qword [esp + 0x58]
fstp qword [esp]
push str.Avg_game_rate:__.2f_n
call fcn.00444320
sub esi, edi
sub esi, ebp
mov dword [esp + 0x3c], esi
fild dword [esp + 0x3c]
test esi, esi
jge 0x448a00
fadd qword [0x4a6cb8]
fimul dword [0x52b84c]
add esp, 4
fdiv qword [esp + 0x58]
fstp qword [esp]
push str.Avg_frame_rate:__.2f_n_n
call fcn.00444320
mov eax, dword [0x52b40c]
add esp, 0xc
xor ebp, ebp
mov dword [eax + 0x4a24], ebp
mov dword [eax + 0x10eb0], ebp
mov dword [eax + 0x10eb4], ebp
cmp dword [0x52b3cc], ebp
je 0x448a53
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
jmp 0x448a57
call ebx
xor ecx, ecx
sub eax, dword [0x52aeb0]
mov edx, 1
sbb ecx, dword [0x52aeb4]
add dword [0x52b3d0], edx
mov dword [0x52b3b8], eax
mov eax, dword [0x52b34c]
mov dword [0x52b3bc], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
pop edi
mov ecx, 0x100
pop esi
mov dword [0x52b3c0], ebp
mov dword [0x52b3c4], ebp
pop ebp
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], ecx
mov dword [eax + 0x48], edx
mov dword [eax + 0x50], edx
mov eax, edx
pop ebx
add esp, 0x530
ret