Function at 0x300e5320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov dl, byte [ecx + eax]
movzx edx, dl
inc eax
test dl, 0x10
push esi
push edi
mov dword [ebp + 4], eax
mov dword [esp + 0x10], edx
je 0x300e54c5
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.300e1a80
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov cl, byte [eax + ecx]
mov ebx, dword [esp + 0x40]
inc eax
mov dword [ebp + 4], eax
movzx ecx, cl
mov eax, ecx
sar eax, 4
and eax, 0xf
and ecx, 0xf
mov dword [esp + 0x14], eax
mov eax, 0xff
mov dword [esp + 0x18], ecx
xor esi, esi
push 2
mov ecx, ebx
mov word [ebx + 0xc], ax
mov word [ebx + 8], si
mov word [ebx + 0xa], si
mov word [ebx + 0xe], ax
call fcn.300a3f20
mov edx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov ecx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x90], esi
mov edi, dword [ebx + 0x4c]
add edi, 4
mov ecx, 7
lea esi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x4c]
mov byte [edx + 0x3c], al
mov ecx, dword [ebx + 0x4c]
mov dl, byte [esp + 0x14]
xor esi, esi
test eax, eax
mov byte [ecx + 0x94], dl
jle 0x300e5438
mov edi, 0x50
mov edi, edi
cmp edi, 0x90
jge 0x300e5430
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov dl, byte [eax + ecx]
inc eax
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0xa88]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
mov byte [esp + 0x48], dl
call fcn.300dfdb0
mov al, byte [esp + 0x40]
mov edx, dword [ebx + 0x4c]
mov byte [esi + edx + 0x3d], al
cmp byte [esp + 0x17], 0xff
jae 0x300e5422
mov byte [ebx + 0x2c], 1
mov ecx, dword [ebx + 0x4c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edi + ecx], edx
inc esi
add edi, 4
cmp esi, eax
jl 0x300e53e0
mov eax, dword [ebp + 0x50]
test eax, eax
lea esi, [ebp + 0x50]
je 0x300e5468
mov eax, dword [ebx + 0x4c]
add eax, 0x3c
push eax
mov ecx, esi
call fcn.300ad240
cmp dword [esi], 0
je 0x300e5468
cmp word [esi + 4], 0x100
jl 0x300e5464
cmp word [esi + 6], 0
jge 0x300e5468
mov byte [ebx + 0x2c], 1
mov eax, dword [esp + 0x10]
cmp eax, 0x13
jne 0x300e5495
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
add eax, ecx
add ecx, 2
mov dword [ebp + 4], ecx
mov edx, dword [ebx + 0x4c]
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov word [edx + 0x96], cx
jmp 0x300e55ae
cmp eax, 0x12
mov ecx, dword [ebx + 0x4c]
mov word [ecx + 0x96], 0
jne 0x300e55ae
mov ebx, dword [ebx + 0x4c]
test byte [ebx + 0x94], 0xc
je 0x300e55ae
mov dword [ebx], 0x13
jmp 0x300e55ae
test dl, 0x40
je 0x300e55cf
lea edx, [eax + 2]
mov dword [ebp + 4], edx
xor edx, edx
mov dh, byte [eax + ecx + 1]
mov dl, byte [eax + ecx]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
mov esi, edx
call fcn.300e1a80
mov ecx, dword [ebp + 0x28]
push esi
call fcn.300e0cd0
mov ebx, dword [esp + 0x40]
mov ecx, 0xff
mov word [ebx + 0xe], cx
mov word [ebx + 0xc], cx
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x18], eax
mov word [ebx + 8], cx
mov word [ebx + 0xa], cx
je 0x300e55ae
cmp dword [eax + 0x78], 1
jne 0x300e55ae
push 1
mov ecx, ebx
call fcn.300a3f20
mov edi, dword [ebx + 0x4c]
mov eax, dword [esp + 0x10]
xor edx, edx
add edi, 8
mov ecx, 7
lea esi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x4c]
mov esi, dword [esp + 0x18]
mov dword [ecx + 4], esi
mov ecx, dword [ebp + 0xa8c]
test ecx, ecx
sete dl
lea ecx, [ebp + 0x50]
push esi
lea edx, [edx + edx + 0xfffd]
and edx, eax
mov eax, dword [ebx + 0x4c]
mov word [eax], dx
mov eax, dword [ecx]
mov edx, dword [ebx + 0x4c]
add edx, 0x40
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ecx + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [esi + 0x68]
call fcn.300e29c0
mov edx, dword [esi + 0x68]
mov eax, dword [edx + 0xdc]
mov cl, byte [eax + 0xbf9]
test cl, cl
je 0x300e55ae
mov byte [ebp + 0x20], 1
mov eax, dword [ebp + 4]
test eax, eax
jl 0x300e55c1
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
je 0x300e55c5
cmp eax, ecx
jle 0x300e55c5
mov byte [ebp + 0x20], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
test edx, edx
jne 0x300e55aa
mov ecx, dword [ebp + 0xa88]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.300dfd40
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea esi, [edi + 8]
mov dword [esi + 4], ecx
lea ecx, [ebp + 0x50]
mov dword [esi], eax
cmp dword [ecx], 0
je 0x300e560a
push 1
push esi
call fcn.300ad0a0
push esi
call fcn.3005a9a0
add esp, 4
mov byte [edi + 0x2c], al
jmp 0x300e55ae