Function at 0x488460
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x488763
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, edi
call fcn.004040c0
mov eax, dword [ebp + 0x10]
call fcn.004040c0
mov eax, esi
call fcn.004040c0
mov eax, 0x2c
call fcn.004083a4
mov dword [ebp - 0x14], eax
push 0x400
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x488438]
call fcn.00405604
add esp, 4
xor edx, edx
push ebp
push 0x48871e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
call fcn.00405448
mov edx, eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
call fcn.00402d24
mov ebx, dword [ebp - 0x10]
push 0x400
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [0x482634]
call fcn.00487bc8
test eax, eax
jne 0x4886f0
mov eax, dword [ebx + 0x20]
test eax, eax
jle 0x488690
cmp eax, 0x3dc
jge 0x488690
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x488579
sub eax, 0x24
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, 0x20
call fcn.00402d24
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0x18]
add eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, 8
call fcn.004028e8
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.004042b8
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.00404114
mov eax, dword [ebx + 0x10]
test eax, eax
jle 0x4885c0
sub eax, 0x24
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, 0x20
call fcn.00402d24
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0x18]
add eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, 0x10
call fcn.004028e8
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
call fcn.004042b8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
call fcn.00404114
mov eax, dword [ebx + 0x18]
test eax, eax
jle 0x488689
cmp dword [ebp + 8], 0x10
jge 0x4885d8
mov dword [ebp + 8], 0x10
cmp dword [ebp + 8], 0x20
jle 0x4885e5
mov dword [ebp + 8], 0x20
sub eax, 0x24
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, 0x20
call fcn.00402d24
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0x18]
add eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.004028e8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 1], 0
jne 0x488674
cmp dword [ebp + 8], 0x14
jle 0x488623
mov dword [ebp + 8], 0x14
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, 0x2c
call fcn.00402d24
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0x18]
add eax, edx
mov ecx, dword [ebp + 8]
add ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.004028e8
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.004048b8
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.00404348
mov eax, dword [esi]
call fcn.00404380
cmp eax, dword [ebp + 8]
jle 0x488689
mov eax, esi
mov edx, dword [ebp + 8]
call fcn.0040470c
jmp 0x488689
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
call fcn.004042b8
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.00404114
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0
mov eax, dword [edi]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [esi]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x5c]
mov ecx, 5
mov eax, 0x488780
call fcn.004098f8
mov eax, dword [ebp - 0x2c]
call fcn.00404580
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488725
push 0
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x488438]
call fcn.00405604
add esp, 4
mov eax, dword [ebp - 0x14]
call fcn.0040270c
ret