Function at 0x447aa0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5737be
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x31c
push ebx
push ebp
mov ebp, dword [eax + 8]
push esi
push edi
call fcn.004cee70
mov esi, eax
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x2c]
test al, al
push edi
je 0x447aec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x4480a6
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x1c]
mov ecx, ebp
shr ecx, 3
mov ebx, dword [edx + ecx*4]
xor ebx, dword [eax + ebp*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
jne 0x448195
xor ebp, ebp
xor esi, esi
nop
mov ecx, dword [0x8927a4]
push esi
push 0x186ac
add ecx, 0x80214
call fcn.0053bdc0
test eax, eax
je 0x447b31
inc esi
cmp esi, 0x20
jl 0x447b10
cmp esi, 0x20
jne 0x447b61
push esi
lea ecx, [esp + 0x130]
push str.powerball
push ecx
call fcn.0055e68c
add esp, 0xc
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4480a6
push 0x214
call fcn.0055e5a9
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebp
mov dword [esp + 0x334], ebp
je 0x447b86
push esi
push eax
call fcn.0049a4b0
mov ebp, eax
mov eax, dword [esp + 0x340]
mov dword [esp + 0x334], 0xffffffff
mov edx, dword [ebp + 0xc4]
push 1
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ecx, dword [ebp + 0x3c]
mov ebx, dword [esp + 0x344]
push 1
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x20], bl
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
lea edi, [ebx + 1]
push edi
lea edx, [esp + 0xb0]
push str.powerball_d
push edx
mov byte [ebp + 0xd8], 1
mov dword [ebp + 0xd4], 0x2c
mov byte [ebp + 0xe0], 1
call fcn.0055e68c
mov ebx, dword [0x8927a4]
add esp, 0xc
lea eax, [esp + 0xac]
push eax
add ebx, 0x57f48
call fcn.00403040
push 1
push 1
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0xf8]
push str.flame_d_d
push eax
mov dword [ebp + 0xf4], 0x1f40
call fcn.0055e68c
push 1
push 1
lea eax, [ebp + 0x178]
push str.dust_d_d
push eax
call fcn.0055e68c
mov ecx, dword [esp + 0x364]
push ecx
lea edx, [esp + 0x150]
push str.powerball_
push edx
call fcn.0055e68c
add esp, 0x2c
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [esp + 0x348]
test al, al
push 1
je 0x4480c1
mov edx, dword [ebp + 0x84]
lea ecx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x20], 1
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ecx, dword [ebp + 0xcc]
push 1
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], 0x258
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov eax, dword [ebp + 0x7c]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 0
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov edx, dword [ebp]
push str.drop
mov ecx, ebp
call dword [edx + 4]
push edi
lea eax, [esp + 0x30]
push str.powerball_d
push eax
call fcn.0055e68c
mov ebx, dword [0x8927a4]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
add ebx, 0x57f48
call fcn.00403040
push 1
push 1
mov dword [ebp + 0x1c], eax
lea eax, [ebp + 0xf8]
push str.flame_d_d
push eax
mov dword [ebp + 0xf4], 0x1f40
call fcn.0055e68c
push 1
push 1
lea eax, [ebp + 0x178]
push str.dust_d_d
push eax
call fcn.0055e68c
mov edx, dword [0x8927a4]
mov ebx, dword [edx + 0x26fe0]
add esp, 0x20
call fcn.004cee70
mov esi, eax
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x2c]
test al, al
push edi
je 0x447d97
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 1
call edi
jmp 0x447db4
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
mov eax, ebx
shr eax, 3
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + ebx*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x8927a4]
mov ecx, dword [eax + 0x26fd8]
mov dword [esp + 0x10], ecx
call fcn.004cee70
mov ebx, eax
lea eax, [ebx + 0x30]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [ebx + 0x2c]
test al, al
je 0x447de9
mov dword [esp + 0x1c], 1
jmp 0x447e02
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x24]
mov ebx, dword [ebx + 0x1c]
mov ecx, eax
shr ecx, 3
mov ecx, dword [edx + ecx*4]
xor ecx, dword [ebx + eax*4]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x18]
push edx
call edi
push esi
call fcn.0053bee0
fimul dword [esp + 0x20]
add esp, 4
call fcn.00561a5c
mov ecx, dword [ebp + 0xa4]
mov dword [esp + 0x10], eax
push 1
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov edx, dword [ebp + 0xa4]
mov dword [esp + 0x10], edx
call fcn.004cee70
mov esi, eax
lea ebx, [esi + 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x2c]
test al, al
push ebx
je 0x447e66
mov dword [esp + 0x20], 1
jmp 0x447e7f
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov eax, ecx
shr eax, 3
mov eax, dword [edx + eax*4]
xor eax, dword [esi + ecx*4]
mov dword [esp + 0x20], eax
call edi
mov eax, dword [0x5f0778]
mov dword [esp + 0x10], eax
call fcn.004cee70
mov esi, eax
lea ebx, [esi + 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x2c]
test al, al
push ebx
je 0x447eaa
mov esi, 1
jmp 0x447ec7
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov ecx, eax
shr ecx, 3
mov dword [esp + 0x14], esi
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x14]
xor esi, dword [ecx + eax*4]
call edi
mov eax, dword [esp + 0x1c]
shl eax, 8
cdq
idiv esi
push 1
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xa4]
push eax
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov edx, dword [ebp + 0xac]
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], 0x62
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov eax, dword [0x8927a4]
mov ecx, dword [eax + 0x26fe0]
mov dword [esp + 0x10], ecx
call fcn.004cee70
mov esi, eax
lea ebx, [esi + 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x2c]
test al, al
push ebx
je 0x447f42
mov esi, 1
jmp 0x447f5f
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
mov esi, dword [esi + 0x1c]
mov edx, eax
shr edx, 3
mov dword [esp + 0x14], esi
mov esi, dword [ecx + edx*4]
mov edx, dword [esp + 0x14]
xor esi, dword [edx + eax*4]
call edi
mov eax, dword [0x8927a4]
mov ecx, dword [eax + 0x26fd8]
mov dword [esp + 0x10], ecx
call fcn.004cee70
mov ebx, eax
lea eax, [ebx + 0x30]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [ebx + 0x2c]
test al, al
je 0x447f96
mov dword [esp + 0x1c], 1
jmp 0x447faf
mov eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x24]
mov ebx, dword [ebx + 0x1c]
mov ecx, eax
shr ecx, 3
mov ecx, dword [edx + ecx*4]
xor ecx, dword [ebx + eax*4]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x18]
push edx
call edi
push esi
call fcn.0053bec0
fimul dword [esp + 0x20]
add esp, 4
call fcn.00561a5c
push eax
lea edi, [ebp + 0xa8]
call fcn.00417ca0
mov ebx, dword [ebp + 0xac]
call fcn.004cee70
mov esi, eax
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x2c]
test al, al
push edi
je 0x447ffd
mov dword [esp + 0x20], 1
jmp 0x448012
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
mov eax, ebx
shr eax, 3
mov eax, dword [ecx + eax*4]
xor eax, dword [edx + ebx*4]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [0x5f0778]
call fcn.004cee70
mov esi, eax
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x2c]
test al, al
push edi
je 0x44803e
mov esi, 1
jmp 0x44804f
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
mov eax, ebx
shr eax, 3
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + ebx*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x1c]
shl eax, 8
cdq
idiv esi
mov ecx, dword [ebp + 0xac]
push 1
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov al, byte [esp + 0x34c]
test al, al
je 0x44808f
mov byte [ebp + 0x210], 1
mov ecx, dword [0x8927a4]
push ebp
add ecx, 0x80214
call fcn.0053bc60
mov eax, 1
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x328
ret 0x14
mov eax, dword [ebp + 0x84]
lea edx, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x20], 0
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ecx, dword [esp + 0x340]
test ecx, ecx
mov edx, dword [0x8927a4]
jl 0x44811c
mov esi, dword [edx + 0x7f988]
cmp ecx, esi
jge 0x44811c
mov eax, dword [edx + 0x7f9a4]
mov edx, dword [edx + 0x7f98c]
add eax, ecx
xor ecx, ecx
test edx, edx
jle 0x44811c
lea ecx, [ecx]
cmp byte [eax], 0
jne 0x448121
add eax, esi
inc ecx
cmp ecx, edx
jl 0x448110
mov ecx, 0x2710
mov edx, dword [ebp + 0xcc]
mov dword [esp + 0x10], ecx
push 1
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.004cee70
mov esi, eax
call fcn.0040adb0
mov ebx, dword [ebp + 0xcc]
call fcn.004cee70
mov esi, eax
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x2c]
test al, al
push edi
je 0x448169
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x44807d
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
mov eax, ebx
shr eax, 3
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + ebx*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x2328
jle 0x44807d
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
xor eax, eax
jmp 0x4480a6