Function at 0x3002354b
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xca0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x30023572
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x30023589
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x1c], 0
jne 0x300235a0
push 0x30001c70
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.30020e8d
mov dword [ebp - 0x848], eax
cmp dword [ebp - 0x848], 0
jne 0x300235f5
xor eax, eax
jmp 0x30023b50
mov edx, dword [ebp + 0xc]
push edx
push 4
call dword [0x30032108]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0xffffffff
jne 0x3002361f
mov dword [ebp - 0x84c], 0
jmp 0x30023ad1
lea eax, [ebp - 0x830]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x83c]
push edx
call fcn.3001ffdb
mov dword [ebp - 0xc], eax
jmp 0x30023655
lea eax, [ebp - 0x830]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x83c]
push edx
call fcn.3001ffa3
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x30023771
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.3002006e
test eax, eax
je 0x3002363b
mov ecx, dword [ebp - 0x854]
and ecx, 1
test ecx, ecx
jne 0x30023699
jmp 0x3002363b
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.3002071f
mov dword [ebp - 0x850], eax
cmp dword [ebp - 0x850], 0
jge 0x300236e0
mov dword [ebp - 0x84c], 0
jmp 0x30023ad1
cmp dword [ebp - 0x850], 0
jne 0x3002363b
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 0x3002363b
lea ecx, [ebp - 0x814]
push ecx
push 0
push 0
push 0
push 0
call fcn.300213ac
cmp dword [ebp - 0x814], 0x9a4
jbe 0x3002392f
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 0x300237cd
mov dword [ebp - 0x84c], 0
jmp 0x30023ad1
push 0x428
push 0
lea eax, [ebp - 0xc88]
push eax
call fcn.30028330
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 0x30023a94
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.3002010b
test eax, eax
je 0x30023913
mov eax, dword [ebp - 0xc8c]
and eax, 1
test eax, eax
je 0x30023913
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.30023144
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
jne 0x30023899
mov dword [ebp - 0x84c], 0
jmp 0x30023ad1
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 0x30023804
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 0x30023970
jmp 0x30023ad1
mov ecx, dword [ebp - 0x840]
shr ecx, 2
mov dword [ebp - 0x834], ecx
mov dword [ebp - 8], 0
jmp 0x30023991
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x834]
jae 0x30023a94
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.3002010b
test eax, eax
je 0x30023988
mov edx, dword [ebp - 0xc98]
and edx, 1
test edx, edx
jne 0x300239e0
jmp 0x30023988
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.30023144
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
jne 0x30023a25
mov dword [ebp - 0x84c], 0
jmp 0x30023ad1
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 0x30023988
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.3002319b
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.30023373
cmp dword [ebp - 0x83c], 0
je 0x30023afa
cmp dword [ebp - 0x83c], 0xffffffff
je 0x30023afa
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 0x30023b17
cmp dword [ebp - 4], 0xffffffff
je 0x30023b17
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 0x30023b3f
cmp dword [ebp - 0x848], 0
je 0x30023b3f
mov eax, dword [ebp - 0x848]
push eax
call fcn.30021560
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