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 - 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