Function at 0x5f1018
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5f12fa
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.005f0fc4
pop ecx
test al, al
je 0x5f12d5
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5f12ce
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00407874
cmp dword [eax + 0xe0], 0
jne 0x5f108b
mov dl, 1
mov eax, dword [0x41f45c]
call fcn.00403fb4
mov dword [ebp - 8], eax
call fcn.00407874
mov edx, dword [ebp - 8]
mov dword [eax + 0xe0], edx
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x94]
cmp dword [ebp - 8], 0
je 0x5f12a5
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jle 0x5f12a5
mov dl, 1
mov eax, dword [0x41f45c]
call fcn.00403fb4
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x41f45c]
call fcn.00403fb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5f129e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41f45c]
call fcn.00403fb4
mov ebx, eax
call fcn.00407874
mov dword [eax + 0xe0], ebx
xor eax, eax
push ebp
push 0x5f124a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5f1218
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5f11e6
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0042214c
mov esi, eax
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.004221a8
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5f114e
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.0042214c
cmp eax, 0x1e
jge 0x5f1187
mov eax, esi
call fcn.0045fe60
cmp ebx, 0xffffffff
je 0x5f1171
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.0042214c
mov ecx, eax
inc ecx
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00422298
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00421fa4
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.00421fa4
jmp 0x5f11dc
inc ebx
je 0x5f11dc
mov eax, dword [0x603f58]
cmp byte [eax], 0
je 0x5f11dc
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x124]
mov eax, dword [esi]
call fcn.00403ec4
lea eax, [ebp - 0x124]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 4
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x5f1310
call fcn.0040c808
mov eax, dword [ebp - 0x14]
call fcn.004053ec
push eax
call sub.kernel32.dll_OutputDebugStringA
dec edi
cmp edi, 0xffffffff
jne 0x5f1122
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f121f
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 8]
call fcn.00407874
mov ebx, dword [eax + 0xe0]
call fcn.00407874
mov edx, dword [ebp - 8]
mov dword [eax + 0xe0], edx
mov dword [ebp - 8], ebx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f12e4
cmp dword [ebp - 8], 0
je 0x5f12cd
call fcn.00407874
xor edx, edx
mov dword [eax + 0xe0], edx
lea eax, [ebp - 8]
call fcn.00413454
ret
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x94]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f1301
lea eax, [ebp - 0x14]
call fcn.00404f5c
ret