Function at 0x30046233
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x300636f8
push 0x300634ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffec8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x30], 0
cmp dword [ebp + 0x10], 0
jne 0x3004627c
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
jne 0x30046295
push 0x3000660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
push 0x348
mov ecx, dword [ebp + 8]
push ecx
call fcn.30044f5b
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x300462b6
mov eax, 0x8007000e
jmp 0x3004687f
mov edx, dword [ebp - 0x34]
add edx, 0x1c
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0x38]
call eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x3004632c
push 0x34
push 0
mov ecx, dword [ebp - 0x34]
add ecx, 0x1c
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0x300071c0
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx + 4]
call edx
add esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
push 0x168
mov ecx, dword [ebp - 0x34]
add ecx, 0x68
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [edx]
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x30046419
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
add edx, 0x18
push edx
mov eax, dword [ebp - 0x34]
add eax, 0x14
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x10
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0x34]
call eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x30046404
push 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.30044fd7
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.30044fb7
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x30007178
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 4]
call ecx
add esp, 0x1c
mov eax, dword [ebp - 0x38]
jmp 0x3004687f
push 0x168
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x34]
add eax, 0x68
push eax
call fcn.30048f1e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
and edx, 0x80
je 0x3004643e
mov eax, dword [ebp - 0x34]
add eax, 0x68
push eax
call fcn.30045f28
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x338], eax
jmp 0x3004644d
mov edx, dword [ebp - 0x34]
add edx, 0x68
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x338], edx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x33c], edx
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x50], 0
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x54], 0
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x58], 0
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x5c], 0
cmp dword [ebp - 0x1c], 0
je 0x30046660
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.3004c0bc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x30046503
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.30044fd7
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.30044fb7
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0x30007130
push 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 4]
call eax
add esp, 0x1c
mov eax, 0x80070482
jmp 0x3004687f
mov dword [ebp - 4], 0
movzx ecx, word [ebp - 0x13c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xf0]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xe8]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x138]
mov dword [eax + 0x18], ecx
cmp dword [ebp - 0xbc], 9
jbe 0x3004654d
cmp dword [ebp - 0x6c], 0
jbe 0x3004654d
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x33c]
and ecx, 8
je 0x30046581
mov edx, dword [ebp - 0x34]
add edx, 0x54
push edx
mov eax, dword [ebp - 0x34]
add eax, 0x50
push eax
push 0x2800
push 2
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.30045360
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x33c]
and edx, 4
je 0x300465b5
mov eax, dword [ebp - 0x34]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x58
push ecx
push 0x2800
push 4
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.30045360
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x300465f1
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [edx]
mov eax, dword [edx + 0x30]
call eax
cmp dword [ebp - 0x38], 0
je 0x30046856
push 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.30044fd7
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.30044fb7
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x300070e8
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 4]
call ecx
add esp, 0x1c
mov eax, dword [ebp - 0x38]
jmp 0x3004687f
mov dword [ebp - 0x144], 0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x33c]
and eax, 8
je 0x3004675a
lea ecx, [ebp - 0x144]
push ecx
push 0
push 2
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
mov edx, dword [ebp - 0x34]
add edx, 0x68
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0x3c]
call eax
test eax, eax
jne 0x3004675a
cmp dword [ebp - 0x144], 0x2800
ja 0x3004675a
mov ecx, dword [ebp - 0x144]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.30044f5b
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x50], 0
je 0x3004675a
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x144]
mov dword [eax + 0x54], ecx
mov edx, dword [ebp - 0x34]
add edx, 0x54
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x50]
push ecx
push 2
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
mov edx, dword [ebp - 0x34]
add edx, 0x68
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0x3c]
call eax
test eax, eax
je 0x3004675a
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.30044fb7
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x50], 0
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x54], 0
mov dword [ebp - 0x144], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x33c]
and ecx, 4
je 0x30046856
lea edx, [ebp - 0x144]
push edx
push 0
push 2
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [eax + 8]
push edx
mov eax, dword [ebp - 0x34]
add eax, 0x68
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
test eax, eax
jne 0x30046856
cmp dword [ebp - 0x144], 0x2800
ja 0x30046856
mov ecx, dword [ebp - 0x144]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.30044f5b
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x58], eax
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x58], 0
je 0x30046856
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x144]
mov dword [eax + 0x5c], ecx
mov edx, dword [ebp - 0x34]
add edx, 0x5c
push edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0x58]
push ecx
push 4
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [edx + 8]
push ecx
mov edx, dword [ebp - 0x34]
add edx, 0x68
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov edx, dword [eax]
mov eax, dword [edx + 0x3c]
call eax
test eax, eax
je 0x30046856
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x58]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.30044fb7
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x58], 0
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x5c], 0
cmp dword [ebp - 0x30], 0
je 0x30046875
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.30045f83
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x34]
mov dword [edx], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c