Function at 0x300409bc
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
cmp dword [ebp + 0xc], 0
jne 0x300409da
push 0x30006498
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x300409f1
push 0x30006498
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
mov ecx, 0x2e
xor eax, eax
mov edi, dword [ebp + 0x10]
rep stosd dword es:[edi], eax
cmp dword [ebp + 0x14], 0
je 0x30040a0e
mov eax, dword [ebp + 0x1c]
add eax, 8
mov dword [ebp - 8], eax
jmp 0x30040a17
mov ecx, dword [ebp + 0x1c]
add ecx, 7
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
and eax, 4
je 0x30040a2b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x5c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x5c], edx
je 0x30040a42
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x64
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x64], edx
je 0x30040a59
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
and eax, 0x800
je 0x30040a6f
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
and eax, 0x1000
je 0x30040a85
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 8], 0x20
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.300407e8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x30040af5
mov eax, dword [ebp - 0xc]
jmp 0x30040e33
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x18]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x20], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x20]
add eax, 0x18
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x24], eax
cmp dword [ebp + 0x14], 0
je 0x30040b3e
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x28], 0xa8
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x90]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x48]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x90], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x28]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x2c], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x34], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3003f836
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x30040b7e
mov eax, dword [ebp - 0xc]
jmp 0x30040e33
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3003faa1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x30040ba0
mov eax, dword [ebp - 0xc]
jmp 0x30040e33
mov edx, dword [ebp + 0xc]
add edx, 0x5c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x5c], edx
je 0x30040bcc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.3003fc22
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x30040bcc
mov eax, dword [ebp - 0xc]
jmp 0x30040e33
mov eax, dword [ebp + 0xc]
add eax, 0x64
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x64], eax
je 0x30040bfc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.3003fd00
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x30040bfc
mov eax, dword [ebp - 0xc]
jmp 0x30040e33
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
and eax, 0x100
je 0x30040c1f
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x10], 0
je 0x30040c1f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.30044fdb
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.30040934
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x78]
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x78]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x78], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x74]
shl edx, 4
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x6c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x6c], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x30]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x3c]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0x40]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x48], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x48]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x48]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x4c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x54], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x54]
mov dword [edx + 0x5c], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x54]
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x58]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x60], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x60]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0x64]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x80], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x80]
mov dword [ecx + 0x88], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x80]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x84]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x8c], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x8c]
mov dword [edx + 0x94], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
jmp 0x30040d2c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x1c]
jae 0x30040d49
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0xc
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + ecx + 4]
mov dword [ebp - 0x14], eax
jmp 0x30040d23
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x8c]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x90]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x98], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x9c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
and edx, 2
je 0x30040db3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x6c], 0
ja 0x30040d8d
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x78], 0
jbe 0x30040db3
push 0x30006718
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
call dword [eax + 4]
add esp, 0xc
mov eax, 0x80070057
jmp 0x30040e33
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
and edx, 2
neg edx
sbb edx, edx
and edx, 0xc
add edx, 4
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x6c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x6c], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x98]
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x9c]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x68], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x68]
mov dword [eax + 0x70], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x68]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0x6c]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x74], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x74]
mov dword [ecx + 0x7c], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x74]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x78]
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xa0], edx
mov dword [eax + 0xa4], ecx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x18