Function at 0x30023703
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xca0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x3002372a
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x30023741
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x1c], 0
jne 0x30023758
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x830], 0x1c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.30021045
mov dword [ebp - 0x848], eax
cmp dword [ebp - 0x848], 0
jne 0x300237ad
xor eax, eax
jmp 0x30023d08
mov edx, dword [ebp + 0xc]
push edx
push 4
call dword [0x30032108]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0xffffffff
jne 0x300237d7
mov dword [ebp - 0x84c], 0
jmp 0x30023c89
lea eax, [ebp - 0x830]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x83c]
push edx
call fcn.30020193
mov dword [ebp - 0xc], eax
jmp 0x3002380d
lea eax, [ebp - 0x830]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x83c]
push edx
call fcn.3002015b
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x30023929
lea eax, [ebp - 0x854]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x828]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.30020226
test eax, eax
je 0x300237f3
mov ecx, dword [ebp - 0x854]
and ecx, 1
test ecx, ecx
jne 0x30023851
jmp 0x300237f3
lea edx, [ebp - 0x844]
push edx
mov eax, dword [ebp - 0x854]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x828]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x848]
push ecx
call fcn.300208d7
mov dword [ebp - 0x850], eax
cmp dword [ebp - 0x850], 0
jge 0x30023898
mov dword [ebp - 0x84c], 0
jmp 0x30023c89
cmp dword [ebp - 0x850], 0
jne 0x300237f3
mov edx, dword [ebp - 0x848]
mov eax, dword [edx + 8]
add eax, 1
mov ecx, dword [ebp - 0x848]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x848]
add edx, 0x24
mov dword [ebp - 0x85c], edx
mov eax, dword [ebp - 0x85c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x858], ecx
mov edx, dword [ebp - 0x844]
mov eax, dword [ebp - 0x85c]
mov dword [edx + 0x420], eax
mov ecx, dword [ebp - 0x844]
mov edx, dword [ebp - 0x858]
mov dword [ecx + 0x424], edx
mov eax, dword [ebp - 0x844]
add eax, 0x420
mov ecx, dword [ebp - 0x858]
mov dword [ecx], eax
mov edx, dword [ebp - 0x844]
add edx, 0x420
mov eax, dword [ebp - 0x85c]
mov dword [eax + 4], edx
jmp 0x300237f3
lea ecx, [ebp - 0x814]
push ecx
push 0
push 0
push 0
push 0
call fcn.30021564
cmp dword [ebp - 0x814], 0x9a4
jbe 0x30023ae7
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x84c], 1
mov edx, dword [ebp + 0xc]
push edx
push 0x18
call dword [0x30032108]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x30023985
mov dword [ebp - 0x84c], 0
jmp 0x30023c89
push 0x428
push 0
lea eax, [ebp - 0xc88]
push eax
call fcn.300284e0
add esp, 0xc
mov dword [ebp - 0xc88], 0x428
lea ecx, [ebp - 0xc88]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [0x30032110]
mov dword [ebp - 0x860], eax
cmp dword [ebp - 0x860], 0
je 0x30023c4c
lea eax, [ebp - 0xc8c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xc74]
cdq
push edx
push eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.300202c3
test eax, eax
je 0x30023acb
mov eax, dword [ebp - 0xc8c]
and eax, 1
test eax, eax
je 0x30023acb
lea ecx, [ebp - 0xa68]
push ecx
mov edx, dword [ebp - 0xc8c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc74]
push ecx
mov edx, dword [ebp - 0x848]
mov eax, dword [edx + 4]
push eax
call fcn.300232fc
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
jne 0x30023a51
mov dword [ebp - 0x84c], 0
jmp 0x30023c89
mov ecx, dword [ebp - 0x848]
add ecx, 0x2c
mov dword [ebp - 0xc94], ecx
mov edx, dword [ebp - 0xc94]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc90], eax
mov ecx, dword [ebp - 0x838]
mov edx, dword [ebp - 0xc94]
mov dword [ecx + 0x284], edx
mov eax, dword [ebp - 0x838]
mov ecx, dword [ebp - 0xc90]
mov dword [eax + 0x288], ecx
mov edx, dword [ebp - 0x838]
add edx, 0x284
mov eax, dword [ebp - 0xc90]
mov dword [eax], edx
mov ecx, dword [ebp - 0x838]
add ecx, 0x284
mov edx, dword [ebp - 0xc94]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x834]
add eax, 1
mov dword [ebp - 0x834], eax
lea ecx, [ebp - 0xc88]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [0x3003210c]
mov dword [ebp - 0x860], eax
jmp 0x300239bc
mov dword [ebp - 0x840], 0
lea eax, [ebp - 0x840]
push eax
push 0x800
lea ecx, [ebp - 0x810]
push ecx
mov edx, dword [ebp - 0x848]
mov eax, dword [edx + 4]
push eax
call dword [0x30032104]
mov dword [ebp - 0x84c], eax
cmp dword [ebp - 0x84c], 0
jne 0x30023b28
jmp 0x30023c89
mov ecx, dword [ebp - 0x840]
shr ecx, 2
mov dword [ebp - 0x834], ecx
mov dword [ebp - 8], 0
jmp 0x30023b49
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x834]
jae 0x30023c4c
lea ecx, [ebp - 0xc98]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + ecx*4 - 0x810]
cdq
push edx
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.300202c3
test eax, eax
je 0x30023b40
mov edx, dword [ebp - 0xc98]
and edx, 1
test edx, edx
jne 0x30023b98
jmp 0x30023b40
push 0
mov eax, dword [ebp - 0xc98]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x810]
push eax
mov ecx, dword [ebp - 0x848]
mov edx, dword [ecx + 4]
push edx
call fcn.300232fc
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
jne 0x30023bdd
mov dword [ebp - 0x84c], 0
jmp 0x30023c89
mov eax, dword [ebp - 0x848]
add eax, 0x2c
mov dword [ebp - 0xca0], eax
mov ecx, dword [ebp - 0xca0]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc9c], edx
mov eax, dword [ebp - 0x838]
mov ecx, dword [ebp - 0xca0]
mov dword [eax + 0x284], ecx
mov edx, dword [ebp - 0x838]
mov eax, dword [ebp - 0xc9c]
mov dword [edx + 0x288], eax
mov ecx, dword [ebp - 0x838]
add ecx, 0x284
mov edx, dword [ebp - 0xc9c]
mov dword [edx], ecx
mov eax, dword [ebp - 0x838]
add eax, 0x284
mov ecx, dword [ebp - 0xca0]
mov dword [ecx + 4], eax
jmp 0x30023b40
mov edx, dword [ebp - 0x848]
mov eax, dword [ebp - 0x834]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x848]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.30023353
mov dword [ebp - 0x84c], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x848]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.3002352b
cmp dword [ebp - 0x83c], 0
je 0x30023cb2
cmp dword [ebp - 0x83c], 0xffffffff
je 0x30023cb2
mov ecx, dword [ebp - 0x83c]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x83c], 0
cmp dword [ebp - 4], 0
je 0x30023ccf
cmp dword [ebp - 4], 0xffffffff
je 0x30023ccf
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x84c], 0
jne 0x30023cf7
cmp dword [ebp - 0x848], 0
je 0x30023cf7
mov eax, dword [ebp - 0x848]
push eax
call fcn.30021718
mov dword [ebp - 0x848], 0
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x848]
mov dword [ecx], edx
mov eax, dword [ebp - 0x84c]
mov esp, ebp
pop ebp
ret 0x18