Function at 0x30021872
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
cmp dword [ebp + 8], 0
jne 0x30021892
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0xc], 0
jne 0x300218a9
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x1c], 0
jne 0x300218c0
push 0x30001c78
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.30021045
mov dword [ebp - 0x47c], eax
cmp dword [ebp - 0x47c], 0
jne 0x30021919
xor eax, eax
jmp 0x30021c4f
mov edx, dword [ebp + 0xc]
push edx
push 0xc
call dword [0x30032108]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x30021943
mov dword [ebp - 0x480], 0
jmp 0x30021bf6
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call fcn.30020193
mov dword [ebp - 4], eax
jmp 0x30021973
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call fcn.3002015b
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x30021a89
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.30020226
test eax, eax
je 0x3002195c
mov ecx, dword [ebp - 0x488]
and ecx, 1
test ecx, ecx
jne 0x300219b4
jmp 0x3002195c
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.300208d7
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0
jge 0x300219f8
mov dword [ebp - 0x480], 0
jmp 0x30021bf6
cmp dword [ebp - 0x484], 0
jne 0x3002195c
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 0x3002195c
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [0x30032118]
mov dword [ebp - 0x28], eax
jmp 0x30021ab9
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 0x30021bec
mov edx, dword [ebp - 0x23c]
cmp edx, dword [ebp - 0x234]
je 0x30021ae2
push 0x30001c78
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.300202c3
test eax, eax
je 0x30021aa2
mov eax, dword [ebp - 0x494]
and eax, 1
test eax, eax
jne 0x30021b1e
jmp 0x30021aa2
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.30020ccb
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x30021b73
mov dword [ebp - 0x480], 0
jmp 0x30021bf6
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 0x30021aa2
mov dword [ebp - 0x480], 1
cmp dword [ebp - 0x254], 0
je 0x30021c16
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 0x30021c3e
cmp dword [ebp - 0x47c], 0
je 0x30021c3e
mov ecx, dword [ebp - 0x47c]
push ecx
call fcn.30021718
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