Function at 0x300216ba
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
cmp dword [ebp + 8], 0
jne 0x300216da
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x300216f1
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x1c], 0
jne 0x30021708
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0x224
mov dword [ebp - 0x20], 0x1c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.30020e8d
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jne 0x30021761
xor eax, eax
jmp 0x30021a97
mov edx, dword [ebp + 0xc]
push edx
push 0xc
call dword [0x30032108]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x3002178b
mov dword [ebp - 0x480], 0
jmp 0x30021a3e
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call fcn.3001ffdb
mov dword [ebp - 4], eax
jmp 0x300217bb
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call fcn.3001ffa3
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x300218d1
lea eax, [ebp - 0x488]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
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 0x300217a4
mov ecx, dword [ebp - 0x488]
and ecx, 1
test ecx, ecx
jne 0x300217fc
jmp 0x300217a4
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x488]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x47c]
push ecx
call fcn.3002071f
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0
jge 0x30021840
mov dword [ebp - 0x480], 0
jmp 0x30021a3e
cmp dword [ebp - 0x484], 0
jne 0x300217a4
mov edx, dword [ebp - 0x47c]
mov eax, dword [edx + 8]
add eax, 1
mov ecx, dword [ebp - 0x47c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x47c]
add edx, 0x24
mov dword [ebp - 0x490], edx
mov eax, dword [ebp - 0x490]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x48c], ecx
mov edx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x490]
mov dword [edx + 0x420], eax
mov ecx, dword [ebp - 0x258]
mov edx, dword [ebp - 0x48c]
mov dword [ecx + 0x424], edx
mov eax, dword [ebp - 0x258]
add eax, 0x420
mov ecx, dword [ebp - 0x48c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x258]
add edx, 0x420
mov eax, dword [ebp - 0x490]
mov dword [eax + 4], edx
jmp 0x300217a4
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [0x30032118]
mov dword [ebp - 0x28], eax
jmp 0x30021901
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
call dword [0x30032114]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x30021a34
mov edx, dword [ebp - 0x23c]
cmp edx, dword [ebp - 0x234]
je 0x3002192a
push 0x30001c70
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
lea eax, [ebp - 0x494]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x23c]
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 0x300218ea
mov eax, dword [ebp - 0x494]
and eax, 1
test eax, eax
jne 0x30021966
jmp 0x300218ea
push 0x10e
lea ecx, [ebp - 0x478]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x130]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 0x494]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
lea eax, [ebp - 0x478]
push eax
call fcn.30020b13
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x300219bb
mov dword [ebp - 0x480], 0
jmp 0x30021a3e
mov ecx, dword [ebp - 0x47c]
mov edx, dword [ecx + 0x14]
add edx, 1
mov eax, dword [ebp - 0x47c]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x47c]
add ecx, 0x2c
mov dword [ebp - 0x49c], ecx
mov edx, dword [ebp - 0x49c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x498], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x49c]
mov dword [ecx + 0x284], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x498]
mov dword [eax + 0x288], ecx
mov edx, dword [ebp - 0x24]
add edx, 0x284
mov eax, dword [ebp - 0x498]
mov dword [eax], edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x284
mov edx, dword [ebp - 0x49c]
mov dword [edx + 4], ecx
jmp 0x300218ea
mov dword [ebp - 0x480], 1
cmp dword [ebp - 0x254], 0
je 0x30021a5e
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x254], 0
cmp dword [ebp - 0x480], 0
jne 0x30021a86
cmp dword [ebp - 0x47c], 0
je 0x30021a86
mov ecx, dword [ebp - 0x47c]
push ecx
call fcn.30021560
mov dword [ebp - 0x47c], 0
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x47c]
mov dword [edx], eax
mov eax, dword [ebp - 0x480]
mov esp, ebp
pop ebp
ret 0x18