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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1cc]
test al, 2
lea ebp, [esi + 0x1cc]
mov ecx, 0
setne cl
mov edx, 0
push edi
inc ecx
test al, 1
setne dl
inc edx
imul ecx, edx
imul ecx, dword [esi + 0x1d0]
add ecx, 0xb90
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x224]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, dword [esi + 0xc]
test edi, edi
lea ebx, [esi + 0xc]
je 0x30138386
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x30138356
lea ebx, [edi + 0x28]
mov edi, dword [ebx]
test edi, edi
jne 0x30138344
jmp 0x30138386
mov ecx, dword [esp + 0x10]
cmp dword [edi + 0x30], ecx
jne 0x30138368
mov dword [edi + 0x2c], 0
jmp 0x30138394
mov ecx, dword [esi + 0x224]
mov eax, dword [ebx]
mov edx, dword [ecx]
push eax
call dword [edx + 0x24]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x28]
push eax
mov dword [ebx], ecx
call fcn.30208320
add esp, 4
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.30137b50
mov edi, eax
mov ecx, dword [esi + 0x224]
mov eax, dword [ecx]
call dword [eax + 0x2c]
test edi, edi
je 0x301387fa
mov eax, dword [esi + 0x1d0]
mov ecx, dword [esi + 0x1f0]
mov ebx, dword [ecx]
lea edx, [edi + 0x40]
push eax
push edx
call dword [ebx + 4]
test eax, eax
mov dword [esp + 0x10], eax
jle 0x301387e9
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov ebx, dword [esp + 0x38]
je 0x30138521
mov edx, dword [ecx + 0x50]
mov eax, dword [edx + 0xe0]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0xdc]
add ecx, 0x7d0
mov dword [esp + 0x14], ecx
mov ecx, 0x64
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], ecx
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
je 0x30138521
mov edx, dword [esp + 0x3c]
cmp edx, ecx
je 0x30138441
push edx
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
call fcn.300cd210
add esp, 0xc
jmp 0x301384d6
movzx edx, byte [ebx + 0x12]
xor ecx, ecx
mov ch, byte [ebx + 0x10]
mov cl, byte [ebx + 0x11]
shl ecx, 8
or ecx, edx
cmp ecx, 0xffffff
jne 0x30138488
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x14]
sub eax, 0x14
add ecx, eax
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x38], eax
push edx
mov eax, edx
push eax
call fcn.300cd210
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.3015bb10
jmp 0x301384d6
cmp eax, dword [esp + 0x38]
je 0x301384d6
jmp 0x30138494
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x18]
mov ecx, dword [edx + 0x78]
cmp ecx, 0x62
je 0x301384a9
cmp ecx, 6
je 0x301384a9
cmp ecx, 0x61
jne 0x301384c9
mov ecx, dword [eax + 0x20]
call fcn.300e9740
add eax, 0x3c
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, eax
push ecx
call fcn.300cd210
mov eax, dword [esp + 0x40]
add esp, 0xc
mov eax, dword [eax + 8]
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x34], eax
jne 0x30138490
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, eax
push ecx
call fcn.300cd210
mov eax, dword [ebp]
mov ecx, eax
sar ecx, 2
lea edx, [esp + 0x28]
push edx
mov edx, dword [ebp + 4]
push eax
and ecx, 3
mov ecx, dword [ecx*4 + 0x3029b640]
sar eax, 2
shl edx, cl
and eax, 3
mov ecx, dword [eax*4 + 0x3029b640]
lea eax, [edi + 0x40]
sar edx, cl
push edx
push eax
call fcn.300cd300
add esp, 0x1c
mov ecx, dword [esi + 0x224]
mov eax, dword [ecx]
call dword [eax + 0x28]
fild dword [esi]
lea ecx, [esi + 0x10]
fstp qword [esp + 0x14]
call fcn.3013ab40
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul qword [0x3029b840]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x30138688
lea ecx, [esi + 0x10]
mov dword [esp + 0x34], 0x80
call fcn.3013ab40
mov ecx, dword [esi]
add eax, 0x4b0
cmp ecx, eax
jle 0x3013857c
mov dword [esp + 0x34], 0x10
jmp 0x301385b4
lea ecx, [esi + 0x10]
call fcn.3013ab40
mov ecx, dword [esi]
add eax, 0x258
cmp ecx, eax
jle 0x30138599
mov dword [esp + 0x34], 0x20
jmp 0x301385b4
lea ecx, [esi + 0x10]
call fcn.3013ab40
mov ecx, dword [esi]
add eax, 0x12c
cmp ecx, eax
jle 0x301385b4
mov dword [esp + 0x34], 0x40
mov eax, dword [esi + 0x228]
test eax, eax
jne 0x301385fa
test byte [ebp], 1
jne 0x301385db
push 0x20
call fcn.3007a1f0
add esp, 4
test eax, eax
je 0x301385f2
mov ecx, eax
call fcn.30145460
jmp 0x301385f4
push 4
call fcn.3007a1f0
add esp, 4
test eax, eax
je 0x301385f2
mov ecx, eax
call fcn.301453b0
jmp 0x301385f4
xor eax, eax
mov dword [esi + 0x228], eax
mov ecx, dword [esi + 0x228]
test ecx, ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
je 0x3013861f
mov edx, dword [ecx]
push ebp
push dword [esp + 0x38]
push eax
lea eax, [edi + 0x24]
push eax
call dword [edx + 4]
mov dword [esp + 0x38], eax
push ebp
call fcn.30137a30
xor edx, edx
mov ecx, eax
mov eax, dword [esp + 0x3c]
imul eax, eax, 0x3e8
div ecx
mov ecx, dword [esi]
add esp, 4
mov edx, 0
add ecx, eax
mov dword [esi], ecx
mov ecx, dword [ebp]
test cl, 2
setne dl
inc edx
test cl, 1
mov ecx, 0
setne cl
inc ecx
imul edx, ecx
imul edx, dword [esp + 0x38]
mov dword [edi + 0x34], edx
movzx ecx, byte [ebx + 0xd]
xor edx, edx
mov dh, byte [ebx + 0xf]
mov dl, byte [ebx + 0xc]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + 0xe]
shl edx, 8
or edx, ecx
add edx, eax
mov dword [edi + 0x38], edx
jmp 0x3013875e
push ebp
call fcn.30137a30
xor edx, edx
mov ecx, eax
mov eax, dword [esp + 0x14]
imul eax, eax, 0x3e8
div ecx
mov ecx, dword [esi]
add esp, 4
mov edx, 0
add ecx, eax
mov dword [esi], ecx
mov ecx, dword [ebp]
test cl, 2
setne dl
inc edx
test cl, 1
mov ecx, 0
setne cl
inc ecx
imul edx, ecx
imul edx, dword [esp + 0x10]
mov dword [edi + 0x34], edx
movzx ecx, byte [ebx + 0xd]
xor edx, edx
mov dh, byte [ebx + 0xf]
mov dl, byte [ebx + 0xc]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + 0xe]
shl edx, 8
or edx, ecx
add edx, eax
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], eax
mov ecx, dword [esi + 0x228]
test ecx, ecx
je 0x30138761
mov ebx, dword [esp + 0x10]
mov edx, dword [ecx]
push ebp
push 0
push ebx
lea eax, [edi + 0x24]
push eax
call dword [edx + 4]
cmp eax, ebx
je 0x30138755
test eax, eax
je 0x30138759
mov ebx, eax
mov eax, dword [esp + 0x10]
push ebp
sub ebx, eax
call fcn.30137a30
mov ecx, eax
mov eax, ebx
imul eax, eax, 0x3e8
cdq
idiv ecx
mov edx, dword [esi]
add esp, 4
add edx, eax
mov dword [esi], edx
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
add ecx, eax
mov dword [edi + 0x38], ecx
add edx, eax
mov ecx, ebp
mov dword [edi + 0x3c], edx
call fcn.3008aed0
imul eax, ebx
add dword [edi + 0x34], eax
jmp 0x30138761
test eax, eax
jne 0x30138761
xor eax, eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x3c], eax
mov ecx, dword [esi + 0x224]
mov edx, dword [ecx]
call dword [edx + 0x2c]
mov eax, dword [edi + 0x3c]
test eax, eax
jbe 0x30138781
mov ecx, dword [esi + 0x224]
mov eax, dword [ecx]
push edi
call dword [eax + 0x1c]
jmp 0x30138788
mov dword [edi + 0x2c], 1
mov ecx, dword [esi + 0x224]
mov edx, dword [ecx]
call dword [edx + 0x28]
mov eax, dword [esi + 4]
test eax, eax
je 0x301387ce
lea ecx, [esi + 0x10]
call fcn.3013ab40
cmp dword [esi], eax
jl 0x301387ce
mov ecx, dword [esi + 0x224]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x224]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x224]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [esi + 4], 0
mov esi, dword [esi + 0x224]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov dword [edi + 0x2c], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc