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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x40]
lea ebp, [esi + 0x18]
push edi
jae 0x3018ebc9
cmp eax, dword [esi + 0x3c]
jae 0x3018ebd5
mov ecx, dword [esi]
push 0x453
call fcn.3015cd50
mov ecx, dword [esi]
push ebp
call fcn.3015ddf0
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
mov ebx, 1
je 0x3018ebee
mov ebx, edi
mov eax, dword [esi + 0x40]
sub eax, dword [ebp]
cmp ebx, eax
jle 0x3018ec04
mov ecx, dword [esi]
push 0x453
call fcn.3015cd50
mov ecx, dword [esi + 0x14]
push ebx
add ecx, 0x78
call fcn.3017fda0
test edi, edi
mov ecx, dword [esi + 0x14]
mov dword [ecx + 0xbc], edi
mov dword [esp + 0x10], 0
jle 0x3018ef24
lea esp, [esp]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x40]
lea edi, [esi + 0x18]
jae 0x3018ec40
cmp eax, dword [esi + 0x3c]
jae 0x3018ec4c
mov ecx, dword [esi]
push 0x453
call fcn.3015cd50
mov ecx, dword [esi]
push edi
call fcn.3015ddf0
mov edx, dword [edi]
mov ecx, dword [esi + 0x40]
mov ebx, eax
mov eax, edx
cmp eax, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
jae 0x3018ec6e
cmp eax, dword [esi + 0x3c]
jae 0x3018ec7a
mov ecx, dword [esi]
push 0x453
call fcn.3015cd50
mov ecx, dword [esi]
push edi
call fcn.3015ddf0
cmp ebx, 1
jl 0x3018ecaa
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x3018ec93
cmp eax, dword [esi + 0x3c]
jae 0x3018ec9f
mov ecx, dword [esi]
push 0x453
call fcn.3015cd50
mov ecx, dword [esi]
push edi
call fcn.3015ddf0
dec ebx
jne 0x3018ec87
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x3018ecb6
cmp eax, dword [esi + 0x3c]
jae 0x3018ecc2
mov ecx, dword [esi]
push 0x453
call fcn.3015cd50
mov ecx, dword [esi]
push edi
call fcn.3015ddf0
mov eax, dword [edi]
cmp eax, dword [esi + 0x3c]
jb 0x3018ecd6
cmp eax, dword [esi + 0x40]
jb 0x3018ece2
mov ecx, dword [esi]
push 0x453
call fcn.3015cd50
mov eax, dword [edi]
movzx ebx, byte [eax]
inc eax
test bl, 0x20
mov dword [esp + 0x1c], ebx
mov dword [edi], eax
jne 0x3018ed19
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
push 4
push 3
push 0x3c
call fcn.301ac6b0
test eax, eax
je 0x3018ed13
mov ecx, eax
call fcn.301a2520
mov ebp, eax
jmp 0x3018ed3d
xor eax, eax
mov ebp, eax
jmp 0x3018ed3d
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x3018ed2c
mov ecx, dword [esi]
push 0x437
call fcn.3015cd50
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
mov ebp, dword [ecx + edx*4]
or dword [ebp + 0x18], 0x8000000
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x20], eax
mov eax, dword [esi + 0x14]
mov edx, dword [ebp + 8]
cmp edx, eax
lea ecx, [ebp + 8]
mov dword [esp + 0x20], ebp
jne 0x3018ed5d
test eax, eax
jne 0x3018ed5d
mov dword [ecx], eax
jmp 0x3018ed67
push eax
push ecx
call fcn.301ae550
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [ebp + 0xc], eax
inc eax
mov dword [ebp + 0x1c], ecx
push eax
mov ecx, ebp
call fcn.30190d80
mov ecx, dword [ebp + 0x18]
or ecx, ebx
test bl, 8
mov dword [ebp + 0x18], ecx
je 0x3018ee02
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x3018ed97
cmp eax, dword [esi + 0x3c]
jae 0x3018eda3
mov ecx, dword [esi]
push 0x453
call fcn.3015cd50
mov ecx, dword [esi]
push edi
call fcn.3015ddf0
mov ebx, eax
test ebx, ebx
mov dword [ebp + 0x10], ebx
jle 0x3018edea
mov dword [esp + 0x14], ebx
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x3018edc4
cmp eax, dword [esi + 0x3c]
jae 0x3018edd0
mov ecx, dword [esi]
push 0x453
call fcn.3015cd50
mov ecx, dword [esi]
push edi
call fcn.3015ddf0
mov ecx, dword [edi]
mov eax, dword [esp + 0x14]
inc ecx
dec eax
mov dword [edi], ecx
mov dword [esp + 0x14], eax
jne 0x3018edb8
test ebx, ebx
je 0x3018edf2
cmp ebx, dword [esp + 0x18]
jle 0x3018edfe
mov ecx, dword [esi]
push 0x453
call fcn.3015cd50
mov ebx, dword [esp + 0x1c]
test bl, bl
jns 0x3018ee38
mov eax, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
jle 0x3018ee38
nop
mov eax, dword [edi]
cmp eax, dword [esi + 0x40]
jae 0x3018ee1c
cmp eax, dword [esi + 0x3c]
jae 0x3018ee28
mov ecx, dword [esi]
push 0x453
call fcn.3015cd50
mov ecx, dword [esi]
push edi
call fcn.3015ddf0
mov eax, dword [ebp + 0xc]
inc ebx
cmp ebx, eax
jl 0x3018ee10
mov edi, dword [esi + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [edi + 0x78]
add edi, 0x78
lea eax, [ebx + edx*4]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
mov dl, byte [eax + 0x119]
mov ecx, ebp
and ecx, 0xfffffff8
test dl, dl
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
je 0x3018eef6
test ecx, ecx
je 0x3018eef6
mov edx, ebx
and edx, 0xfff
cmp edx, 0x10
mov eax, ebx
jne 0x3018ee8f
and eax, 0xfffff000
movzx eax, byte [eax + 0xc]
and eax, 1
jmp 0x3018eed5
mov edx, ebx
and edx, 0xfffff000
mov ecx, dword [edx + 0xc]
sub eax, dword [edx + 0x2c]
movzx ebp, word [ecx + 0x30]
mov cl, byte [ecx + 0x32]
imul eax, ebp
mov edx, dword [edx + 0x24]
sar eax, cl
mov ecx, eax
mov ebp, eax
and ecx, 7
shl ecx, 2
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x1c]
sar ebp, 3
mov dword [esp + 0x18], eax
mov eax, dword [edx + ebp*4]
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
and eax, edx
test eax, eax
je 0x3018eef6
push ecx
mov ecx, dword [esp + 0x18]
call fcn.301ad690
test eax, eax
je 0x3018eef6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ebx
call fcn.301ae080
mov ecx, dword [esp + 0x24]
push ebp
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.301acac0
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
jbe 0x3018ef13
mov ecx, eax
mov dword [edi + 4], ecx
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
jl 0x3018ec30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret